diff options
author | Filipp Lepalaan <filipp@mac.com> | 2016-07-14 08:52:33 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2016-07-14 08:52:33 +0300 |
commit | d57eb570584519e40dcb2e4499b9fc294208cbab (patch) | |
tree | db4b811c449a4af5cc21286c7e9b18b33663be7e /servo/forms | |
parent | 4eb3224fab24a42bf1a47d65b226b0944b40ca50 (diff) | |
download | Servo-d57eb570584519e40dcb2e4499b9fc294208cbab.tar.gz Servo-d57eb570584519e40dcb2e4499b9fc294208cbab.tar.bz2 Servo-d57eb570584519e40dcb2e4499b9fc294208cbab.zip |
Limit choices to enabled locations
Diffstat (limited to 'servo/forms')
-rw-r--r-- | servo/forms/admin.py | 2 |
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() ) |