Explorar o código

Merge pull request #3687 from kobayashi/3679

fix url expressions
Jeremy Stretch %!s(int64=6) %!d(string=hai) anos
pai
achega
de986ec392
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  1. 1 0
      docs/release-notes/version-2.6.md
  2. 1 1
      netbox/ipam/tables.py

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

@@ -11,6 +11,7 @@
 
 
 * [#3669](https://github.com/netbox-community/netbox/issues/3669) - Include `weight` field in prefix/VLAN role form
 * [#3669](https://github.com/netbox-community/netbox/issues/3669) - Include `weight` field in prefix/VLAN role form
 * [#3674](https://github.com/netbox-community/netbox/issues/3674) - Include comments on PowerFeed view
 * [#3674](https://github.com/netbox-community/netbox/issues/3674) - Include comments on PowerFeed view
+* [#3679](https://github.com/netbox-community/netbox/issues/3679) - Fix link for assigned ipaddress in interface page
 
 
 # v2.6.7 (2019-11-01)
 # v2.6.7 (2019-11-01)
 
 

+ 1 - 1
netbox/ipam/tables.py

@@ -85,7 +85,7 @@ IPADDRESS_LINK = """
 """
 """
 
 
 IPADDRESS_ASSIGN_LINK = """
 IPADDRESS_ASSIGN_LINK = """
-<a href="{% url 'ipam:ipaddress_edit' pk=record.pk %}?interface={{ request.GET.interface }}&return_url={{ request.GET.return_url }}">{{ record }}</a>
+<a href="{% url 'ipam:ipaddress_edit' pk=record.pk %}?interface={{ record.interface.pk }}&return_url={{ request.path }}">{{ record }}</a>
 """
 """
 
 
 IPADDRESS_PARENT = """
 IPADDRESS_PARENT = """