add load/save values, fix filterset

This commit is contained in:
dreng
2023-05-06 22:57:12 +02:00
parent 7e2ffc575f
commit 9cc1607811
5 changed files with 88 additions and 27 deletions
+1 -6
View File
@@ -121,7 +121,7 @@ class CoordinateGroup(NetBoxModel):
class Coordinate(NetBoxModel):
"""
Coordinates are being used to place devices in a topology view onto a certian
Coordinates are being used to place devices in a topology view onto a certain
position. Devices belong to one or more coordinate groups. They have to
be unique together.
"""
@@ -147,11 +147,6 @@ class Coordinate(NetBoxModel):
def get_absolute_url(self):
return reverse('plugins:netbox_topology_views:coordinate', args=[self.pk])
def set_xy_from_text_coords(self, coords: str):
xy = coords.split(';')
self.x = xy[0]
self.y = xy[1]
class IndividualOptions(NetBoxModel):
CHOICES = (
('interface', 'interface'),