Sfoglia il codice sorgente

Fixes #8807: Correct REST API URL for FHRP group assignments

jeremystretch 3 anni fa
parent
commit
2cfbfe473e
2 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 1 0
      docs/release-notes/version-3.1.md
  2. 1 1
      netbox/ipam/api/serializers.py

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

@@ -21,6 +21,7 @@
 * [#8713](https://github.com/netbox-community/netbox/issues/8713) - Restore missing "add" button on services list view
 * [#8717](https://github.com/netbox-community/netbox/issues/8717) - Fix redirection after bulk edit/delete of prefixes from aggregate view
 * [#8724](https://github.com/netbox-community/netbox/issues/8724) - Fix exception during device import with invalid device type
+* [#8807](https://github.com/netbox-community/netbox/issues/8807) - Correct REST API URL for FHRP group assignments
 * [#8808](https://github.com/netbox-community/netbox/issues/8808) - Fix members count under FHRP group list
 
 ---

+ 1 - 1
netbox/ipam/api/serializers.py

@@ -126,7 +126,7 @@ class FHRPGroupSerializer(PrimaryModelSerializer):
 
 
 class FHRPGroupAssignmentSerializer(PrimaryModelSerializer):
-    url = serializers.HyperlinkedIdentityField(view_name='tenancy-api:contactassignment-detail')
+    url = serializers.HyperlinkedIdentityField(view_name='ipam-api:fhrpgroupassignment-detail')
     group = NestedFHRPGroupSerializer()
     interface_type = ContentTypeField(
         queryset=ContentType.objects.all()