grandlyon: replace collectivty name used in form title

This commit is contained in:
Frédéric Péters 2020-05-15 16:04:06 +02:00
parent 62e93b441a
commit c8b9d2adf2
1 changed files with 2 additions and 0 deletions

View File

@ -47,4 +47,6 @@ for object_type in ('formdefs', 'workflows', 'categories', 'datasources', 'model
# iterate over all objects and store them again to make sure side-code is run.
for formdef in FormDef.select():
if orig_city in formdef.name:
formdef.name = formdef.name.replace(orig_city, dest_city)
formdef.store()