diff --git a/CHANGELOG.md b/CHANGELOG.md index ca3e4db24c..86e6649835 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 This changelog format was introduced in NAV 5.4.0. Older changelogs can be found in the [HISTORY](HISTORY) file. -## Unreleased +## [5.7.0] - 2023-09-07 ### Added diff --git a/python/nav/netmap/topology.py b/python/nav/netmap/topology.py index f35492fefb..1b8cdbd11a 100644 --- a/python/nav/netmap/topology.py +++ b/python/nav/netmap/topology.py @@ -136,7 +136,7 @@ def build_netmap_layer2_graph( _logger.debug("build_netmap_layer2_graph() vlan metadata for _nodes_ done") if view: - saved_views = view.node_position_set.all() + saved_views = view.node_positions.all() netmap_graph = _attach_node_positions(netmap_graph, saved_views) _logger.debug("build_netmap_layer2_graph() view positions and graph done") @@ -191,7 +191,7 @@ def build_netmap_layer3_graph(topology_without_metadata, load_traffic=False, vie metadata[gwpp_u.prefix.vlan.id].append(additional_metadata) if view: - graph = _attach_node_positions(graph, view.node_position_set.all()) + graph = _attach_node_positions(graph, view.node_positions.all()) _logger.debug("build_netmap_layer3_graph() view positions and graph done") return graph