2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-29 03:56:43 +00:00

PEP style fixes

This commit is contained in:
Oliver 2022-05-12 17:30:52 +10:00
parent a81ea01e8e
commit c4fa72e54c

View File

@ -144,7 +144,7 @@ class BaseInvenTreeSetting(models.Model):
This is necessary to abtract the settings object This is necessary to abtract the settings object
from the implementing class (e.g plugins) from the implementing class (e.g plugins)
Subclasses should override this function to ensure the kwargs are correctly set. Subclasses should override this function to ensure the kwargs are correctly set.
""" """
@ -601,7 +601,7 @@ class BaseInvenTreeSetting(models.Model):
if not model_name: if not model_name:
return None return None
try: try:
(app, mdl) = model_name.strip().split('.') (app, mdl) = model_name.strip().split('.')
except ValueError: except ValueError:
@ -637,7 +637,7 @@ class BaseInvenTreeSetting(models.Model):
return model_class.get_api_url() return model_class.get_api_url()
except: except:
pass pass
return None return None
def is_bool(self): def is_bool(self):