mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-16 12:38:17 -06:00
14799 fix sync_classes call
This commit is contained in:
parent
df41defd8e
commit
e4a50e2e5f
@ -165,8 +165,8 @@ class ScriptModule(PythonModuleMixin, JobsMixin, ManagedFile):
|
|||||||
|
|
||||||
def save(self, *args, **kwargs):
|
def save(self, *args, **kwargs):
|
||||||
self.file_root = ManagedFileRootPathChoices.SCRIPTS
|
self.file_root = ManagedFileRootPathChoices.SCRIPTS
|
||||||
return super().save(*args, **kwargs)
|
|
||||||
self.sync_classes()
|
self.sync_classes()
|
||||||
|
return super().save(*args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
@receiver(post_save, sender=ScriptModule)
|
@receiver(post_save, sender=ScriptModule)
|
||||||
|
Loading…
Reference in New Issue
Block a user