mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-17 09:12:18 -06:00
9077 audit alters_data=True
This commit is contained in:
@@ -359,6 +359,7 @@ class CableTermination(ChangeLoggedModel):
|
||||
# Circuit terminations
|
||||
elif getattr(self.termination, 'site', None):
|
||||
self._site = self.termination.site
|
||||
cache_related_objects.alters_data = True
|
||||
|
||||
def to_objectchange(self, action):
|
||||
objectchange = super().to_objectchange(action)
|
||||
@@ -637,6 +638,7 @@ class CablePath(models.Model):
|
||||
self.save()
|
||||
else:
|
||||
self.delete()
|
||||
retrace.alters_data = True
|
||||
|
||||
def _get_path(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user