mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
make simpler
This commit is contained in:
parent
9da234002b
commit
3d2113d98b
@ -94,10 +94,8 @@ class PluginConfig(models.Model):
|
|||||||
ret = super().save(force_insert, force_update, *args, **kwargs)
|
ret = super().save(force_insert, force_update, *args, **kwargs)
|
||||||
|
|
||||||
if not reload:
|
if not reload:
|
||||||
if self.active is False and self.__org_active is True:
|
if (self.active is False and self.__org_active is True) or \
|
||||||
registry.reload_plugins()
|
(self.active is True and self.__org_active is False):
|
||||||
|
|
||||||
elif self.active is True and self.__org_active is False:
|
|
||||||
registry.reload_plugins()
|
registry.reload_plugins()
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
|
Loading…
x
Reference in New Issue
Block a user