forked from itsee-birmingham/django_wce_api_tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
serializers.py
45 lines (24 loc) · 897 Bytes
/
serializers.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
from rest_framework import serializers
from api import serializers as api_serializers
from . import models
class AuthorSerializer(api_serializers.BaseModelSerializer):
class Meta:
model = models.Author
class WorkSerializer(api_serializers.BaseModelSerializer):
class Meta:
model = models.Work
class ReviewSerializer(api_serializers.BaseModelSerializer):
class Meta:
model = models.Review
class DecisionSerializer(api_serializers.BaseModelSerializer):
class Meta:
model = models.Decision
class EditionSerializer(api_serializers.BaseModelSerializer):
class Meta:
model = models.Edition
class PublicationPlanSerializer(api_serializers.BaseModelSerializer):
class Meta:
model = models.PublicationPlan
class EditorSerializer(api_serializers.BaseModelSerializer):
class Meta:
model = models.Editor