Fix typo and update tests to catch other typos

This commit is contained in:
Wayne Witzel III
2017-06-12 14:14:07 -04:00
parent d1008e4ccd
commit af7762e417
3 changed files with 21 additions and 1 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ def _notification_templates(apps):
for nt in NotificationTemplate.objects.all():
for field in filter(lambda x: nt.notification_class.init_parameters[x]['type'] == "password",
nt.notification_class.init_parameters):
if nt.notification_configuration[field].startswith('$encrypted$AESCBC4'):
if nt.notification_configuration[field].startswith('$encrypted$AESCBC$'):
continue
value = decrypt_field(nt, 'notification_configuration', subfield=field)
nt.notification_configuration[field] = value