Select now store selections between forms.Partial: #362

This commit is contained in:
Matthew Smith
2019-10-16 20:06:08 +01:00
parent 3de58740c6
commit 3079ee0814
4 changed files with 7 additions and 42 deletions

View File

@@ -15,7 +15,8 @@ class AssetSearchForm(forms.Form):
category = forms.ModelMultipleChoiceField(models.AssetCategory.objects.all(), required=False)
status = forms.ModelMultipleChoiceField(models.AssetStatus.objects.all(), required=False)
class SupplierForm(forms.Form):
class SupplierForm(forms.ModelForm):
class Meta:
model = models.Supplier
fields = '__all__'