mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
fixed api
This commit is contained in:
parent
cea880f245
commit
a6b4fc7e81
4
src/documents/serialisers.py
Normal file → Executable file
4
src/documents/serialisers.py
Normal file → Executable file
@ -7,7 +7,7 @@ class CorrespondentSerializer(serializers.HyperlinkedModelSerializer):
|
|||||||
|
|
||||||
class Meta(object):
|
class Meta(object):
|
||||||
model = Correspondent
|
model = Correspondent
|
||||||
fields = ("id", "slug", "name")
|
fields = ("id", "slug", "name", "automatic_classification")
|
||||||
|
|
||||||
|
|
||||||
class TagSerializer(serializers.HyperlinkedModelSerializer):
|
class TagSerializer(serializers.HyperlinkedModelSerializer):
|
||||||
@ -15,7 +15,7 @@ class TagSerializer(serializers.HyperlinkedModelSerializer):
|
|||||||
class Meta(object):
|
class Meta(object):
|
||||||
model = Tag
|
model = Tag
|
||||||
fields = (
|
fields = (
|
||||||
"id", "slug", "name", "colour", "match", "matching_algorithm")
|
"id", "slug", "name", "colour", "automatic_classification")
|
||||||
|
|
||||||
|
|
||||||
class CorrespondentField(serializers.HyperlinkedRelatedField):
|
class CorrespondentField(serializers.HyperlinkedRelatedField):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user