mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 13:32:15 +00:00
Added multi-option search along.
Added auto hiding of categories in search unless selected. Added field allowing to choose whether category auto-hidden Fixes #353
This commit is contained in:
@@ -10,6 +10,11 @@ class AssetForm(forms.ModelForm):
|
||||
fields = '__all__'
|
||||
|
||||
|
||||
class AssetSearchForm(forms.Form):
|
||||
query = forms.CharField(required=False)
|
||||
category = forms.ModelMultipleChoiceField(models.AssetCategory.objects.all(), required=False)
|
||||
status = forms.ModelMultipleChoiceField(models.AssetStatus.objects.all(), required=False)
|
||||
|
||||
class SupplierForm(forms.Form):
|
||||
class Meta:
|
||||
model = models.Supplier
|
||||
|
||||
Reference in New Issue
Block a user