2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-29 20:16:44 +00:00

PEP style fixes

This commit is contained in:
Oliver 2022-02-28 19:15:12 +11:00
parent fd02f1b761
commit 50a32a13f0

View File

@ -467,7 +467,7 @@ class BaseInvenTreeSetting(models.Model):
Check if this setting is a "choice" field Check if this setting is a "choice" field
""" """
return self.__class__.get_setting_choices(self.key, **kwargs) != None return self.__class__.get_setting_choices(self.key, **kwargs) is not None
def as_choice(self, **kwargs): def as_choice(self, **kwargs):
""" """
@ -489,7 +489,6 @@ class BaseInvenTreeSetting(models.Model):
return self.value return self.value
def is_bool(self, **kwargs): def is_bool(self, **kwargs):
""" """
Check if this setting is required to be a boolean value Check if this setting is required to be a boolean value