From f053c6bde5ff8b252bb49c06d1032943852ed8ec Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Fri, 14 Oct 2016 12:13:15 +0300 Subject: Django 1.10 changes --- servo/forms/devices.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'servo/forms/devices.py') 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( -- cgit v1.2.3