From c4fa72e54c7ef0fa2651549a1f65a96fae9a7d52 Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 12 May 2022 17:30:52 +1000 Subject: [PATCH] PEP style fixes --- InvenTree/common/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/InvenTree/common/models.py b/InvenTree/common/models.py index a13bbec071..2ec83c962c 100644 --- a/InvenTree/common/models.py +++ b/InvenTree/common/models.py @@ -144,7 +144,7 @@ class BaseInvenTreeSetting(models.Model): This is necessary to abtract the settings object from the implementing class (e.g plugins) - + Subclasses should override this function to ensure the kwargs are correctly set. """ @@ -601,7 +601,7 @@ class BaseInvenTreeSetting(models.Model): if not model_name: return None - + try: (app, mdl) = model_name.strip().split('.') except ValueError: @@ -637,7 +637,7 @@ class BaseInvenTreeSetting(models.Model): return model_class.get_api_url() except: pass - + return None def is_bool(self):