aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2016-07-14 08:52:33 +0300
committerFilipp Lepalaan <filipp@mac.com>2016-07-14 08:52:33 +0300
commitd57eb570584519e40dcb2e4499b9fc294208cbab (patch)
treedb4b811c449a4af5cc21286c7e9b18b33663be7e
parent4eb3224fab24a42bf1a47d65b226b0944b40ca50 (diff)
downloadServo-d57eb570584519e40dcb2e4499b9fc294208cbab.tar.gz
Servo-d57eb570584519e40dcb2e4499b9fc294208cbab.tar.bz2
Servo-d57eb570584519e40dcb2e4499b9fc294208cbab.zip
Limit choices to enabled locations
-rw-r--r--servo/forms/admin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/servo/forms/admin.py b/servo/forms/admin.py
index 2575865..0fa0058 100644
--- a/servo/forms/admin.py
+++ b/servo/forms/admin.py
@@ -18,7 +18,7 @@ from servo.models import User, Group, Checklist
class UserUploadForm(forms.Form):
datafile = forms.FileField()
- location = forms.ModelChoiceField(queryset=Location.objects.all())
+ location = forms.ModelChoiceField(queryset=Location.objects.filter(enabled=True))
queues = forms.ModelMultipleChoiceField(
queryset=Queue.objects.all()
)