mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 09:37:04 +01:00
fix migration and more tests
This commit is contained in:
parent
ee9a73aa95
commit
a1293c77b9
2 changed files with 25 additions and 10 deletions
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue