mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 09:16:10 -06:00
11340 update _terminations_modified only if modified
This commit is contained in:
parent
08a419ec7a
commit
62ee8860f1
@ -119,6 +119,7 @@ class Cable(PrimaryModel):
|
|||||||
|
|
||||||
@a_terminations.setter
|
@a_terminations.setter
|
||||||
def a_terminations(self, value):
|
def a_terminations(self, value):
|
||||||
|
if self.a_terminations != list(value):
|
||||||
self._terminations_modified = True
|
self._terminations_modified = True
|
||||||
self._a_terminations = value
|
self._a_terminations = value
|
||||||
|
|
||||||
@ -133,6 +134,7 @@ class Cable(PrimaryModel):
|
|||||||
|
|
||||||
@b_terminations.setter
|
@b_terminations.setter
|
||||||
def b_terminations(self, value):
|
def b_terminations(self, value):
|
||||||
|
if self.b_terminations != list(value):
|
||||||
self._terminations_modified = True
|
self._terminations_modified = True
|
||||||
self._b_terminations = value
|
self._b_terminations = value
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user