diff options
Diffstat (limited to 'servo/forms')
-rw-r--r-- | servo/forms/checkin.py | 10 | ||||
-rw-r--r-- | servo/forms/devices.py | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/servo/forms/checkin.py b/servo/forms/checkin.py index 4ac91f9..fdadb8e 100644 --- a/servo/forms/checkin.py +++ b/servo/forms/checkin.py @@ -79,11 +79,11 @@ class DeviceForm(forms.ModelForm): 'password', ) widgets = { - 'sn' : SearchFieldInput(), - 'password' : forms.PasswordInput(), - 'username' : forms.TextInput(), - 'purchased_on' : SelectDateWidget(years=YEARS), - 'warranty_status' : forms.Select(attrs={'readonly': 'readonly'}), + 'sn': SearchFieldInput(), + 'password': forms.PasswordInput(), + 'username': forms.TextInput(), + 'purchased_on': SelectDateWidget(years=YEARS), + 'warranty_status': forms.Select(attrs={'readonly': 'readonly'}), } def __init__(self, *args, **kwargs): diff --git a/servo/forms/devices.py b/servo/forms/devices.py index 8a451cf..e3c1dae 100644 --- a/servo/forms/devices.py +++ b/servo/forms/devices.py @@ -32,7 +32,7 @@ class DeviceSearchForm(forms.Form): widget=DatepickerInput(attrs={'class': 'input-small'}) ) sn = forms.CharField(required=False, label=_('Serial number contains')) - + def __init__(self, *args, **kwargs): super(DeviceSearchForm, self).__init__(*args, **kwargs) self.fields['description'] = AutocompleteCharField( @@ -47,7 +47,7 @@ class DeviceForm(forms.ModelForm): class Meta: model = Device exclude = ('spec', 'customers', 'files', 'image_url', - 'exploded_view_url', 'manual_url',) + 'exploded_view_url', 'manual_url', ) widgets = {'purchased_on': DatepickerInput()} tags = forms.ModelMultipleChoiceField( |