mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #15638: Correct parameter used to retrieve saved filters for a model
This commit is contained in:
@ -172,7 +172,7 @@ class NetBoxModelFilterSetForm(CustomFieldsMixin, SavedFiltersMixin, forms.Form)
|
|||||||
# Limit saved filters to those applicable to the form's model
|
# Limit saved filters to those applicable to the form's model
|
||||||
object_type = ObjectType.objects.get_for_model(self.model)
|
object_type = ObjectType.objects.get_for_model(self.model)
|
||||||
self.fields['filter_id'].widget.add_query_params({
|
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):
|
def _get_custom_fields(self, content_type):
|
||||||
|
Reference in New Issue
Block a user