mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-13 19:18:16 -06:00
15671 save module before sync_classes
This commit is contained in:
parent
c7f6c206cf
commit
281d70b6e1
@ -165,8 +165,9 @@ class ScriptModule(PythonModuleMixin, JobsMixin, ManagedFile):
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
self.file_root = ManagedFileRootPathChoices.SCRIPTS
|
||||
obj = super().save(*args, **kwargs)
|
||||
self.sync_classes()
|
||||
return super().save(*args, **kwargs)
|
||||
return obj
|
||||
|
||||
|
||||
@receiver(post_save, sender=ScriptModule)
|
||||
|
Loading…
Reference in New Issue
Block a user