PEP style fixes

This commit is contained in:
Oliver Walters 2022-05-08 17:32:23 +10:00
parent 6415a20e6e
commit 5cd2c20a11
2 changed files with 3 additions and 3 deletions

View File

@ -171,7 +171,7 @@ class GlobalSettingsDetail(generics.RetrieveUpdateAPIView):
if key not in common.models.InvenTreeSetting.SETTINGS.keys():
raise NotFound()
return common.models.InvenTreeSetting.get_setting_object(key)
permission_classes = [
@ -239,7 +239,7 @@ class UserSettingsDetail(generics.RetrieveUpdateAPIView):
if key not in common.models.InvenTreeUserSetting.SETTINGS.keys():
raise NotFound()
return common.models.InvenTreeUserSetting.get_setting_object(key, user=self.request.user)
permission_classes = [

View File

@ -276,7 +276,7 @@ class UserSettingsApiTest(InvenTreeAPITestCase):
def test_user_setting_init(self):
"""Test we can retrieve a setting which has not yet been initialized"""
key = 'HOMEPAGE_PART_LATEST'
# Ensure it does not actually exist in the database