aboutsummaryrefslogtreecommitdiffstats
path: root/servo/forms/checkin.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2021-05-24 17:03:06 +0300
committerFilipp Lepalaan <filipp@mac.com>2021-05-24 17:03:06 +0300
commit467f9fef717cbdc217aae63fef6481150e8e34a7 (patch)
treee738ef41beb2a4a441188a2cb5a202c8df25fa77 /servo/forms/checkin.py
parentd2394e47e6baed4f878103477862d1bcc27b816a (diff)
downloadServo-467f9fef717cbdc217aae63fef6481150e8e34a7.tar.gz
Servo-467f9fef717cbdc217aae63fef6481150e8e34a7.tar.bz2
Servo-467f9fef717cbdc217aae63fef6481150e8e34a7.zip
Checkin fixes
Diffstat (limited to 'servo/forms/checkin.py')
-rw-r--r--servo/forms/checkin.py11
1 files changed, 7 insertions, 4 deletions
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