diff --git a/common/forms.py b/common/forms.py index 57a3d7ff..8d434afe 100644 --- a/common/forms.py +++ b/common/forms.py @@ -15,7 +15,7 @@ class KeyValueInput(forms.Widget): def get_context(self, name, value, attrs): context = super().get_context(name, value, attrs) data = json.loads(context['widget']['value']) - context['widget']['value'] = [ {p[0]: p[1]} for p in data.items()] + context['widget']['value'] = [ {p[0]: p[1]} for p in data.items()] if data else [] return context class Media: