diff --git a/netbox/tenancy/forms/bulk_edit.py b/netbox/tenancy/forms/bulk_edit.py index 9e6576076..94de67e28 100644 --- a/netbox/tenancy/forms/bulk_edit.py +++ b/netbox/tenancy/forms/bulk_edit.py @@ -45,12 +45,17 @@ class TenantBulkEditForm(NetBoxModelBulkEditForm): queryset=TenantGroup.objects.all(), required=False ) + description = forms.CharField( + label=_('Description'), + max_length=200, + required=False + ) model = Tenant fieldsets = ( - FieldSet('group'), + FieldSet('group', 'description'), ) - nullable_fields = ('group',) + nullable_fields = ('group', 'description') # diff --git a/netbox/tenancy/tests/test_views.py b/netbox/tenancy/tests/test_views.py index 4d1a45a82..704019c6e 100644 --- a/netbox/tenancy/tests/test_views.py +++ b/netbox/tenancy/tests/test_views.py @@ -98,6 +98,7 @@ class TenantTestCase(ViewTestCases.PrimaryObjectViewTestCase): cls.bulk_edit_data = { 'group': tenant_groups[1].pk, + 'description': 'Bulk edit description', }