We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42bce45 commit eaaec17Copy full SHA for eaaec17
sde_collections/serializers.py
@@ -125,7 +125,7 @@ class Meta:
125
)
126
127
def get_document_type(self, obj):
128
- if obj.document_type is not None:
+ if obj.document_type and obj.document_type != 0:
129
return obj.get_document_type_display()
130
elif obj.collection.document_type is not None:
131
return obj.collection.get_document_type_display()
0 commit comments