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
5ee9af7f0e
commit
bc48a95844
@ -353,7 +353,7 @@ class BaseInvenTreeSetting(models.Model):
|
|||||||
|
|
||||||
if user is not None:
|
if user is not None:
|
||||||
filters['user'] = user
|
filters['user'] = user
|
||||||
|
|
||||||
if plugin is not None:
|
if plugin is not None:
|
||||||
from plugin import InvenTreePluginBase
|
from plugin import InvenTreePluginBase
|
||||||
|
|
||||||
@ -462,7 +462,7 @@ class BaseInvenTreeSetting(models.Model):
|
|||||||
Ensure that the key:value pair is unique.
|
Ensure that the key:value pair is unique.
|
||||||
In addition to the base validators, this ensures that the 'key'
|
In addition to the base validators, this ensures that the 'key'
|
||||||
is unique, using a case-insensitive comparison.
|
is unique, using a case-insensitive comparison.
|
||||||
|
|
||||||
Note that sub-classes (UserSetting, PluginSetting) use other filters
|
Note that sub-classes (UserSetting, PluginSetting) use other filters
|
||||||
to determine if the setting is 'unique' or not
|
to determine if the setting is 'unique' or not
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user