diff --git a/sde_collections/serializers.py b/sde_collections/serializers.py index 9623e85d..2d1b9511 100644 --- a/sde_collections/serializers.py +++ b/sde_collections/serializers.py @@ -125,7 +125,7 @@ class Meta: ) def get_document_type(self, obj): - if obj.document_type is not None: + if obj.document_type and obj.document_type != 0: return obj.get_document_type_display() elif obj.collection.document_type is not None: return obj.collection.get_document_type_display()