mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
fix one incorrect use of archive_version
This commit is contained in:
parent
dd19ea46fe
commit
857fe3a55c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user