Fixes #15638: Correct parameter used to retrieve saved filters for a model
This commit is contained in:
parent
9f16f1466a
commit
c7f6c206cf
|
|
@ -172,7 +172,7 @@ class NetBoxModelFilterSetForm(CustomFieldsMixin, SavedFiltersMixin, forms.Form)
|
|||
# Limit saved filters to those applicable to the form's model
|
||||
object_type = ObjectType.objects.get_for_model(self.model)
|
||||
self.fields['filter_id'].widget.add_query_params({
|
||||
'object_types_id': object_type.pk,
|
||||
'object_type_id': object_type.pk,
|
||||
})
|
||||
|
||||
def _get_custom_fields(self, content_type):
|
||||
|
|
|
|||
Loading…
Reference in New Issue