Commit 55773d3c by Őry Máté

dashboard: fix migration

datamigration made var substituion fail if original rendered text contained
percent char. now these are escaped
parent 4df81053
......@@ -6,9 +6,9 @@ class Migration(DataMigration):
def forwards(self, orm):
for n in orm.Notification.objects.all():
n.subject_data = {"user_text_template": n.subject,
n.subject_data = {"user_text_template": n.subject.replace("%", "%%"),
"admin_text_template": "", "params": {}}
n.message_data = {"user_text_template": n.message,
n.message_data = {"user_text_template": n.message.replace("%", "%%"),
"admin_text_template": "", "params": {}}
n.save()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment