mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 03:56:43 +00:00
PEP fixes
This commit is contained in:
parent
d72efc3757
commit
e3c3ed28da
@ -643,6 +643,7 @@ class BaseInvenTreeSetting(models.Model):
|
|||||||
def protected(self):
|
def protected(self):
|
||||||
return self.__class__.is_protected(self.key)
|
return self.__class__.is_protected(self.key)
|
||||||
|
|
||||||
|
|
||||||
def settings_group_options():
|
def settings_group_options():
|
||||||
"""
|
"""
|
||||||
Build up group tuple for settings based on your choices
|
Build up group tuple for settings based on your choices
|
||||||
|
@ -222,8 +222,8 @@ class UserSettingsApiTest(InvenTreeAPITestCase):
|
|||||||
Test list URL for user settings
|
Test list URL for user settings
|
||||||
"""
|
"""
|
||||||
url = reverse('api-user-setting-list')
|
url = reverse('api-user-setting-list')
|
||||||
# test setting with choice
|
|
||||||
response = self.get(url, expected_code=200)
|
self.get(url, expected_code=200)
|
||||||
|
|
||||||
def test_user_setting_boolean(self):
|
def test_user_setting_boolean(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user