From 467f9fef717cbdc217aae63fef6481150e8e34a7 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 24 May 2021 17:03:06 +0300 Subject: Checkin fixes --- servo/forms/checkin.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'servo/forms/checkin.py') 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 -- cgit v1.2.3