added fields to the correspondent and tag REST API

This commit is contained in:
tsia 2019-01-22 20:51:20 +01:00 committed by GitHub
parent 0256dcbe32
commit 43e71cfcaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):