Migration fix (#7379)

- Handle missing template file
This commit is contained in:
Oliver authored and GitHub committed 2024-05-31 17:07:12 +10:00
1 parent 74f4b85dfd
commit dc8d77bdea
1 file changed
+4
@@ -40,6 +40,10 @@ def forward(apps, schema_editor):
filename = template.template.path 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: if '/report/inventree/' in filename:
# Do not migrate internal report templates # Do not migrate internal report templates
continue continue