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/devices.py | |
parent | d57eb570584519e40dcb2e4499b9fc294208cbab (diff) | |
download | Servo-f053c6bde5ff8b252bb49c06d1032943852ed8ec.tar.gz Servo-f053c6bde5ff8b252bb49c06d1032943852ed8ec.tar.bz2 Servo-f053c6bde5ff8b252bb49c06d1032943852ed8ec.zip |
Django 1.10 changes
Diffstat (limited to 'servo/forms/devices.py')
-rw-r--r-- | servo/forms/devices.py | 4 |
1 files changed, 2 insertions, 2 deletions
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( |