diff options
author | Filipp Lepalaan <filipp@mac.com> | 2016-10-14 12:13:15 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2016-10-14 12:13:15 +0300 |
commit | f053c6bde5ff8b252bb49c06d1032943852ed8ec (patch) | |
tree | cea8b0f87047bc473949a52dbd431f6f3022df95 /servo/forms | |
parent | d57eb570584519e40dcb2e4499b9fc294208cbab (diff) | |
download | Servo-f053c6bde5ff8b252bb49c06d1032943852ed8ec.tar.gz Servo-f053c6bde5ff8b252bb49c06d1032943852ed8ec.tar.bz2 Servo-f053c6bde5ff8b252bb49c06d1032943852ed8ec.zip |
Django 1.10 changes
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( |