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

This commit is contained in:
jeremystretch 2022-01-10 15:26:01 -05:00
parent d5443adc74
commit dd0b16bff5
3 changed files with 4 additions and 1 deletions

View File

@ -14,6 +14,7 @@
* [#8285](https://github.com/netbox-community/netbox/issues/8285) - Fix `cluster_count` under tenant REST API serializer * [#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 * [#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 * [#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 * [#8306](https://github.com/netbox-community/netbox/issues/8306) - Redirect user to previous page after login
--- ---

View File

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

View File

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