diff options
Diffstat (limited to 'servo/forms')
-rw-r--r-- | servo/forms/product.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/servo/forms/product.py b/servo/forms/product.py index 227a9b3..08fb71a 100644 --- a/servo/forms/product.py +++ b/servo/forms/product.py @@ -53,6 +53,11 @@ class ProductSearchForm(forms.Form): label=_('Device model is'), queryset=TaggedItem.objects.none() ) + location = forms.ModelChoiceField( + required=False, + label=_('Location is'), + queryset=Location.objects.filter(enabled=True) + ) def __init__(self, *args, **kwargs): super(ProductSearchForm, self).__init__(*args, **kwargs) |