Change related_object field

This commit is contained in:
dormantman 2019-12-16 16:55:11 +03:00
parent 33ac0ad3e6
commit fb05243281

View File

@ -21,7 +21,7 @@ class CollectionBackOfficeSerializer(CollectionBaseSerializer):
source='get_collection_type_display', read_only=True)
country = CountrySimpleSerializer(read_only=True)
count_related_objects = serializers.IntegerField(read_only=True)
related_object_names = serializers.ListField(read_only=True)
related_object_names = serializers.JSONField(read_only=True)
class Meta:
model = models.Collection
@ -35,7 +35,7 @@ class CollectionBackOfficeSerializer(CollectionBaseSerializer):
'country',
'country_id',
# 'block_size',
# 'description',
'description',
'slug',
# 'start',
# 'end',