fixed api

This commit is contained in:
Jonas Winkler 2018-09-05 14:57:37 +02:00
parent cea880f245
commit a6b4fc7e81

4
src/documents/serialisers.py Normal file → Executable file
View File

@ -7,7 +7,7 @@ class CorrespondentSerializer(serializers.HyperlinkedModelSerializer):
class Meta(object):
model = Correspondent
fields = ("id", "slug", "name")
fields = ("id", "slug", "name", "automatic_classification")
class TagSerializer(serializers.HyperlinkedModelSerializer):
@ -15,7 +15,7 @@ class TagSerializer(serializers.HyperlinkedModelSerializer):
class Meta(object):
model = Tag
fields = (
"id", "slug", "name", "colour", "match", "matching_algorithm")
"id", "slug", "name", "colour", "automatic_classification")
class CorrespondentField(serializers.HyperlinkedRelatedField):