mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-14 19:15:41 +00:00
PEP fixes
This commit is contained in:
@ -643,6 +643,7 @@ class BaseInvenTreeSetting(models.Model):
|
||||
def protected(self):
|
||||
return self.__class__.is_protected(self.key)
|
||||
|
||||
|
||||
def settings_group_options():
|
||||
"""
|
||||
Build up group tuple for settings based on your choices
|
||||
|
@ -222,8 +222,8 @@ class UserSettingsApiTest(InvenTreeAPITestCase):
|
||||
Test list URL for user settings
|
||||
"""
|
||||
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):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user