Skip to content

Commit 757b3af

Browse files
committed
Add tags to filter form and reorder class import
1 parent 7cbf4b1 commit 757b3af

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

changes/974.added

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
Added tag support to the bulk edit forms for Compliance Rules. Tags are now applied through the `Add tags` and `Remove tags` fields honored by Nautobot's bulk edit view.
22

3-
Added a selectable (non-default) tags column to the Compliance Rules list views.
3+
Added a selectable (non-default) tags column to the Compliance Rules list views.
4+
5+
Added a `Tags` field to the Compliance Rules filter form, so the list view can be filtered by tag from the UI.

nautobot_golden_config/forms.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,10 @@ class ComplianceRuleFilterForm(NautobotFilterForm):
207207
)
208208

209209
feature = forms.DynamicModelMultipleChoiceField(queryset=models.ComplianceFeature.objects.all(), required=False)
210+
tags = forms.TagFilterField(model)
210211

211212

212-
class ComplianceRuleBulkEditForm(NautobotBulkEditForm, TagsBulkEditFormMixin):
213+
class ComplianceRuleBulkEditForm(TagsBulkEditFormMixin, NautobotBulkEditForm):
213214
"""BulkEdit form for ComplianceRule instances."""
214215

215216
pk = django_forms.ModelMultipleChoiceField(

0 commit comments

Comments
 (0)