From 857fe3a55c0e24d748544358a8a4acc70f1361af Mon Sep 17 00:00:00 2001 From: jonaswinkler Date: Wed, 10 Feb 2021 21:34:39 +0100 Subject: [PATCH] fix one incorrect use of archive_version --- src/documents/serialisers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/serialisers.py b/src/documents/serialisers.py index fb0962902..b01f82805 100644 --- a/src/documents/serialisers.py +++ b/src/documents/serialisers.py @@ -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