Skip to content

Commit ac6fd83

Browse files
[fix] Fixed device group filter label in device list #1071
Replaced "Shared systemwide (no organization)" with "-" in the device group filter dropdown of the device list view, while keeping the original label unchanged elsewhere. Fixes #1071
1 parent 309f083 commit ac6fd83

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

openwisp_controller/config/filters.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ class GroupFilter(MultitenantRelatedOrgFilter):
1818
title = _("group")
1919
field_name = "group"
2020
parameter_name = "group_id"
21+
widget_attrs = MultitenantRelatedOrgFilter.widget_attrs.copy()
22+
widget_attrs.update({"data-empty-label": "-"})
2123

2224

2325
class DeviceGroupFilter(admin.SimpleListFilter):

0 commit comments

Comments
 (0)