mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 01:06:11 -06:00
11340 update _terminations_modified only if modified
This commit is contained in:
parent
62ee8860f1
commit
079dff0c35
@ -119,7 +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):
|
if not self.pk or self.a_terminations != list(value):
|
||||||
self._terminations_modified = True
|
self._terminations_modified = True
|
||||||
self._a_terminations = value
|
self._a_terminations = value
|
||||||
|
|
||||||
@ -134,7 +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):
|
if not self.pk or 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