Represent and assign ConfigContext tags by their slugs

This commit is contained in:
Jeremy Stretch
2019-12-11 16:04:43 -05:00
parent 5243334508
commit a5476108ee
2 changed files with 7 additions and 7 deletions

View File

@@ -173,9 +173,9 @@ class ConfigContextSerializer(ValidatedModelSerializer):
required=False,
many=True
)
tags = SerializedPKRelatedField(
tags = serializers.SlugRelatedField(
queryset=Tag.objects.all(),
serializer=TagSerializer,
slug_field='slug',
required=False,
many=True
)