aboutsummaryrefslogtreecommitdiffstats
path: root/servo/forms
diff options
context:
space:
mode:
Diffstat (limited to 'servo/forms')
-rw-r--r--servo/forms/repairs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/servo/forms/repairs.py b/servo/forms/repairs.py
index 9a07250..9348d1f 100644
--- a/servo/forms/repairs.py
+++ b/servo/forms/repairs.py
@@ -34,8 +34,9 @@ class GsxCustomerForm(BaseForm):
class GsxComponentForm(forms.Form):
def __init__(self, *args, **kwargs):
components = kwargs.get('components')
- del kwargs['components']
+ del(kwargs['components'])
super(GsxComponentForm, self).__init__(*args, **kwargs)
+
if len(components):
components = json.loads(components)
for k, v in components.items():