Explorar el Código

Fixes #8305: Fix assignment of custom field data to FHRP groups via UI

jeremystretch hace 4 años
padre
commit
dd0b16bff5

+ 1 - 0
docs/release-notes/version-3.1.md

@@ -14,6 +14,7 @@
 * [#8285](https://github.com/netbox-community/netbox/issues/8285) - Fix `cluster_count` under tenant REST API serializer
 * [#8287](https://github.com/netbox-community/netbox/issues/8287) - Correct label in export template form
 * [#8301](https://github.com/netbox-community/netbox/issues/8301) - Fix delete button for various object children views
+* [#8305](https://github.com/netbox-community/netbox/issues/8305) - Fix assignment of custom field data to FHRP groups via UI
 * [#8306](https://github.com/netbox-community/netbox/issues/8306) - Redirect user to previous page after login
 
 ---

+ 2 - 0
netbox/ipam/forms/models.py

@@ -592,6 +592,8 @@ class FHRPGroupForm(CustomFieldModelForm):
         return instance
 
     def clean(self):
+        super().clean()
+
         ip_vrf = self.cleaned_data.get('ip_vrf')
         ip_address = self.cleaned_data.get('ip_address')
         ip_status = self.cleaned_data.get('ip_status')

+ 1 - 1
netbox/ipam/tables/fhrp.py

@@ -60,7 +60,7 @@ class FHRPGroupAssignmentTable(BaseTable):
     )
     actions = ButtonsColumn(
         model=FHRPGroupAssignment,
-        buttons=('edit', 'delete', 'foo')
+        buttons=('edit', 'delete')
     )
 
     class Meta(BaseTable.Meta):