mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-07 00:27:12 +00:00
fix migration and more tests
This commit is contained in:
1 parent
ee9a73aa95
commit
a1293c77b9
2 files changed
+25
-10
No files matched your search
@@ -192,7 +192,7 @@ def move_old_to_new_locations(apps, schema_editor):
|
||||
os.unlink(old_path)
|
||||
else:
|
||||
# Set archive path for unaffected files
|
||||
doc.archive_filename = archive_path_old(doc)
|
||||
doc.archive_filename = archive_name_from_filename(doc.filename)
|
||||
Document.objects.filter(id=doc.id).update(
|
||||
archive_filename=doc.archive_filename
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user