Migration fix (#7379)

- Handle missing template file
This commit is contained in:
Oliver 2024-05-31 17:07:12 +10:00 committed by GitHub
parent 74f4b85dfd
commit dc8d77bdea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,6 +40,10 @@ def forward(apps, schema_editor):
filename = template.template.path
if not os.path.exists(filename):
print(f"Migration error: Template file '{filename}' does not exist")
continue
if '/report/inventree/' in filename:
# Do not migrate internal report templates
continue