diff options
author | Filipp Lepalaan <filipp@mac.com> | 2021-05-24 17:03:06 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2021-05-24 17:03:06 +0300 |
commit | 467f9fef717cbdc217aae63fef6481150e8e34a7 (patch) | |
tree | e738ef41beb2a4a441188a2cb5a202c8df25fa77 /servo/forms | |
parent | d2394e47e6baed4f878103477862d1bcc27b816a (diff) | |
download | Servo-467f9fef717cbdc217aae63fef6481150e8e34a7.tar.gz Servo-467f9fef717cbdc217aae63fef6481150e8e34a7.tar.bz2 Servo-467f9fef717cbdc217aae63fef6481150e8e34a7.zip |
Checkin fixes
Diffstat (limited to 'servo/forms')
-rw-r--r-- | servo/forms/base.py | 2 | ||||
-rw-r--r-- | servo/forms/checkin.py | 11 |
2 files changed, 8 insertions, 5 deletions
diff --git a/servo/forms/base.py b/servo/forms/base.py index b59215b..9467de5 100644 --- a/servo/forms/base.py +++ b/servo/forms/base.py @@ -72,7 +72,7 @@ class BaseModelForm(forms.ModelForm): class SearchFieldInput(forms.TextInput): - def render(self, name, value, attrs=None): + def render(self, name, value, attrs=None, **kwargs): field = super(SearchFieldInput, self).render(name, value, attrs) final_attrs = self.build_attrs(attrs) diff --git a/servo/forms/checkin.py b/servo/forms/checkin.py index c8429a9..6a6cf9d 100644 --- a/servo/forms/checkin.py +++ b/servo/forms/checkin.py @@ -40,6 +40,7 @@ class ConfirmationForm(forms.Form): class DeviceForm(forms.ModelForm): + """The form for editing devices in the /checkin view""" required_css_class = 'required' @@ -69,10 +70,12 @@ class DeviceForm(forms.ModelForm): help_text=_("Please describe the condition of the device") ) - queue = forms.ModelChoiceField(label=_('Queue'), - required=False, - queryset=Queue.objects.all(), - help_text=_('Assign order to this queue')) + queue = forms.ModelChoiceField( + label=_('Queue'), + required=False, + queryset=Queue.objects.all(), + help_text=_('Assign order to this queue') + ) class Meta: model = Device |