From 2e9caf66f960db6d1177183643e6a4e88e3eba1c Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Mon, 28 Dec 2020 14:04:07 +0200 Subject: [PATCH] Remove deprecated settings. --- django_etebase/app_settings.py | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/django_etebase/app_settings.py b/django_etebase/app_settings.py index c1e8dc9..90225a6 100644 --- a/django_etebase/app_settings.py +++ b/django_etebase/app_settings.py @@ -31,17 +31,6 @@ class AppSettings: return getattr(settings, self.prefix + name, dflt) - @cached_property - def API_PERMISSIONS(self): # pylint: disable=invalid-name - """ - Deprecated. Do not use. - """ - perms = self._setting("API_PERMISSIONS", ("rest_framework.permissions.IsAuthenticated",)) - ret = [] - for perm in perms: - ret.append(self.import_from_str(perm)) - return ret - @cached_property def API_PERMISSIONS_READ(self): # pylint: disable=invalid-name perms = self._setting("API_PERMISSIONS_READ", tuple()) @@ -58,23 +47,6 @@ class AppSettings: ret.append(self.import_from_str(perm)) return ret - @cached_property - def API_AUTHENTICATORS(self): # pylint: disable=invalid-name - """ - Deprecated. Do not use. - """ - perms = self._setting( - "API_AUTHENTICATORS", - ( - "rest_framework.authentication.TokenAuthentication", - "rest_framework.authentication.SessionAuthentication", - ), - ) - ret = [] - for perm in perms: - ret.append(self.import_from_str(perm)) - return ret - @cached_property def GET_USER_QUERYSET_FUNC(self): # pylint: disable=invalid-name get_user_queryset = self._setting("GET_USER_QUERYSET_FUNC", None)