From 43e71cfcaa6516dbcaf6422897463d361f66208c Mon Sep 17 00:00:00 2001 From: tsia Date: Tue, 22 Jan 2019 20:51:20 +0100 Subject: [PATCH] added fields to the correspondent and tag REST API --- src/documents/serialisers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/documents/serialisers.py b/src/documents/serialisers.py index bd00fe466..b497a1dd0 100644 --- a/src/documents/serialisers.py +++ b/src/documents/serialisers.py @@ -7,7 +7,7 @@ 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): @@ -15,7 +15,7 @@ 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):