diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-09-30 02:08:19 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-09-30 02:08:19 +0300 |
commit | 4194e8ee556f3109057fab0afb7894927b52713e (patch) | |
tree | 996cb5de38706b07bb24f519d868b29da54c0b67 /servo/forms | |
parent | 03326a06e12de1af575c8e4b2de7e3824f6eaace (diff) | |
download | Servo-4194e8ee556f3109057fab0afb7894927b52713e.tar.gz Servo-4194e8ee556f3109057fab0afb7894927b52713e.tar.bz2 Servo-4194e8ee556f3109057fab0afb7894927b52713e.zip |
Cleanup
Diffstat (limited to 'servo/forms')
-rw-r--r-- | servo/forms/repairs.py | 3 |
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(): |