mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 10:58:37 -06:00
15671 save module before sync_classes (#15675)
* 15671 save module before sync_classes * 15671 don't return save
This commit is contained in:
parent
7756ac6090
commit
289b68c9b7
@ -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
|
||||||
|
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