Skip to content

Commit

Permalink
added fields to the correspondent and tag REST API
Browse files Browse the repository at this point in the history
  • Loading branch information
tsia authored Jan 22, 2019
1 parent 0256dcb commit 43e71cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/documents/serialisers.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ class CorrespondentSerializer(serializers.HyperlinkedModelSerializer):

class Meta:
model = Correspondent
fields = ("id", "slug", "name")
fields = ("id", "slug", "name", "match", "matching_algorithm", "is_insensitive")


class TagSerializer(serializers.HyperlinkedModelSerializer):

class Meta:
model = Tag
fields = (
"id", "slug", "name", "colour", "match", "matching_algorithm")
"id", "slug", "name", "colour", "match", "matching_algorithm", "is_insensitive")


class CorrespondentField(serializers.HyperlinkedRelatedField):
Expand Down

0 comments on commit 43e71cf

Please sign in to comment.