aboutsummaryrefslogtreecommitdiffstats
path: root/servo/forms
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2017-04-24 19:18:32 +0300
committerFilipp Lepalaan <filipp@mac.com>2017-04-24 19:18:32 +0300
commit0ff21402fa711c3e865a7c8b8b715d7dfac2f9fd (patch)
tree740d0d7dc85f1c28af3c70514acd57e4f66c242f /servo/forms
parentf239b9716ceac0e7d3bff5e9b40dda2119a2fb88 (diff)
downloadServo-0ff21402fa711c3e865a7c8b8b715d7dfac2f9fd.tar.gz
Servo-0ff21402fa711c3e865a7c8b8b715d7dfac2f9fd.tar.bz2
Servo-0ff21402fa711c3e865a7c8b8b715d7dfac2f9fd.zip
Added queue menu to checkin/auth
Diffstat (limited to 'servo/forms')
-rw-r--r--servo/forms/checkin.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/servo/forms/checkin.py b/servo/forms/checkin.py
index 31d28b5..b3ed0d0 100644
--- a/servo/forms/checkin.py
+++ b/servo/forms/checkin.py
@@ -17,7 +17,7 @@ from servo.validators import (apple_sn_validator,
from servo.forms.base import SearchFieldInput
from servo.models import (Configuration, Device,
Attachment, Location,
- Customer,)
+ Customer, Queue,)
# Generate list of years for purchase date picker
@@ -69,6 +69,11 @@ 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'))
+
class Meta:
model = Device
fields = (
@@ -233,7 +238,6 @@ class IssueForm(forms.Form):
issue_description = forms.CharField(
min_length=10,
- #initial='Does not work very well',
label=_(u'Problem description'),
widget=forms.Textarea(attrs={'class': 'span12'})
)