mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 12:36:45 +00:00
PEP fixes
This commit is contained in:
parent
c41f16837d
commit
1aafec7107
@ -54,7 +54,7 @@ class PluginConfig(models.Model):
|
|||||||
|
|
||||||
def save(self, force_insert=False, force_update=False, *args, **kwargs):
|
def save(self, force_insert=False, force_update=False, *args, **kwargs):
|
||||||
"""extend save method to reload plugins if the 'active' status changes"""
|
"""extend save method to reload plugins if the 'active' status changes"""
|
||||||
ret = super().save(force_insert, force_update, *args, **kwargs)
|
ret = super().save(force_insert, force_update, *args, **kwargs)
|
||||||
app = apps.get_app_config('plugin')
|
app = apps.get_app_config('plugin')
|
||||||
|
|
||||||
if self.active is False and self.__org_active is True:
|
if self.active is False and self.__org_active is True:
|
||||||
@ -64,4 +64,3 @@ class PluginConfig(models.Model):
|
|||||||
app.reload_plugins()
|
app.reload_plugins()
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user