fixed filter bug versions api and set required on manufacturer for softwareproducts add
This commit is contained in:
1 parent
e952111a53
commit
4bc418a5d0
2 files changed
+4
-2
No files matched your search
@@ -23,7 +23,9 @@ class SoftwareProductVersionFilterSet(NetBoxModelFilterSet):
|
||||
"""Filter capabilities for SoftwareProductVersion instances."""
|
||||
class Meta:
|
||||
model = SoftwareProductVersion
|
||||
fields = tuple()
|
||||
fields = (
|
||||
"software_product",
|
||||
)
|
||||
|
||||
def search(self, queryset, name, value):
|
||||
"""Perform the filtered search."""
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ class SoftwareProductForm(NetBoxModelForm):
|
||||
|
||||
manufacturer = DynamicModelChoiceField(
|
||||
queryset=Manufacturer.objects.all(),
|
||||
required=False,
|
||||
required=True,
|
||||
)
|
||||
|
||||
class Meta:
|
||||
|
||||
Reference in new issue
Block a user