Merge pull request #5412 from FinnStutzenstein/fixMigrationPath
Fix migration path for non-existing fonts
This commit is contained in:
commit
5239e40858
@ -22,7 +22,10 @@ def change_logo_and_font_configs(apps, schema_editor):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
for key in logo_font_keys:
|
for key in logo_font_keys:
|
||||||
config = ConfigStore.objects.get(key=key)
|
try:
|
||||||
|
config = ConfigStore.objects.get(key=key)
|
||||||
|
except ConfigStore.DoesNotExist:
|
||||||
|
continue
|
||||||
logo = config.value
|
logo = config.value
|
||||||
path = logo.get("path")
|
path = logo.get("path")
|
||||||
if path and path.startswith("/media/file/"):
|
if path and path.startswith("/media/file/"):
|
||||||
|
Loading…
Reference in New Issue
Block a user