fix products serializer
This commit is contained in:
parent
13968b3ed7
commit
c69bc05156
|
|
@ -129,7 +129,7 @@ class CityDocumentShortSerializer(serializers.Serializer):
|
|||
|
||||
@staticmethod
|
||||
def get_name_translated(obj):
|
||||
return get_translated_value(loads(obj.name))
|
||||
return get_translated_value(loads(obj.name)) if obj.name else None
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user