summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2020-05-15 14:04:06 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2020-05-15 14:04:06 (GMT)
commitc8b9d2adf2235c46ff9d1a9d714abf1f28160803 (patch)
tree2814aa14d9b273d8bc7a339468a97e74e5aa7606
parent62e93b441a366ece9b0b09ddd7bf96ee3ae7c092 (diff)
downloadmisc-fred-c8b9d2adf2235c46ff9d1a9d714abf1f28160803.zip
misc-fred-c8b9d2adf2235c46ff9d1a9d714abf1f28160803.tar.gz
misc-fred-c8b9d2adf2235c46ff9d1a9d714abf1f28160803.tar.bz2
grandlyon: replace collectivty name used in form title
-rwxr-xr-xgrandlyon/scripts/copy-wcs.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/grandlyon/scripts/copy-wcs.py b/grandlyon/scripts/copy-wcs.py
index b5d18bd..f54fb3a 100755
--- a/grandlyon/scripts/copy-wcs.py
+++ b/grandlyon/scripts/copy-wcs.py
@@ -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()