fix one incorrect use of archive_version

This commit is contained in:
jonaswinkler 2021-02-10 21:34:39 +01:00
parent dd19ea46fe
commit 857fe3a55c

View File

@ -129,7 +129,7 @@ class DocumentSerializer(DynamicFieldsModelSerializer):
return obj.get_public_filename()
def get_archived_file_name(self, obj):
if obj.archive_checksum:
if obj.has_archive_version:
return obj.get_public_filename(archive=True)
else:
return None