Skip to content

Commit

Permalink
fixed user and group filter form name #15102
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi1693 committed Feb 9, 2024
1 parent 011bc5b commit 789d117
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions netbox/users/forms/filtersets.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@
from utilities.forms.widgets import DateTimePicker

__all__ = (
'GroupFilterForm',
'NetBoxGroupFilterForm',
'ObjectPermissionFilterForm',
'UserFilterForm',
'NetBoxUserFilterForm',
'TokenFilterForm',
)


class GroupFilterForm(NetBoxModelFilterSetForm):
class NetBoxGroupFilterForm(NetBoxModelFilterSetForm):
model = NetBoxGroup
fieldsets = (
(None, ('q', 'filter_id',)),
)


class UserFilterForm(NetBoxModelFilterSetForm):
class NetBoxUserFilterForm(NetBoxModelFilterSetForm):
model = NetBoxUser
fieldsets = (
(None, ('q', 'filter_id',)),
Expand Down
4 changes: 2 additions & 2 deletions netbox/users/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class TokenBulkDeleteView(generic.BulkDeleteView):
class UserListView(generic.ObjectListView):
queryset = NetBoxUser.objects.all()
filterset = filtersets.UserFilterSet
filterset_form = forms.UserFilterForm
filterset_form = forms.NetBoxUserFilterForm
table = tables.UserTable


Expand Down Expand Up @@ -112,7 +112,7 @@ class UserBulkDeleteView(generic.BulkDeleteView):
class GroupListView(generic.ObjectListView):
queryset = NetBoxGroup.objects.annotate(users_count=Count('user'))
filterset = filtersets.GroupFilterSet
filterset_form = forms.GroupFilterForm
filterset_form = forms.NetBoxGroupFilterForm
table = tables.GroupTable


Expand Down

0 comments on commit 789d117

Please sign in to comment.