Skip to content
Snippets Groups Projects
Commit e64b31b6 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-1124: also serialize SIPIdentifier into url and _id field

parent 5b7e52f6
No related branches found
No related tags found
1 merge request!633TMSS-1124
......@@ -16,7 +16,7 @@ class FloatDurationField(serializers.FloatField):
return value.total_seconds()
class RelationalHyperlinkedModelSerializer(serializers.HyperlinkedModelSerializer):
_accepted_pk_names = ('id', 'name')
_accepted_pk_names = ('id', 'name', 'unique_identifier')
def get_field_names(self, declared_fields, info):
field_names = super().get_field_names(declared_fields, info)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment