Fixes #1622 - split the api into 4 apps: core, history, schedule, storage - exploded the settings into testing/prod
11 lines
245 B
Python
11 lines
245 B
Python
from rest_framework import serializers
|
|
|
|
from ..models import File
|
|
|
|
|
|
class FileSerializer(serializers.HyperlinkedModelSerializer):
|
|
id = serializers.IntegerField(read_only=True)
|
|
|
|
class Meta:
|
|
model = File
|
|
fields = "__all__"
|