From 3990009400527f68601e76a7e0e59715cce58dfa Mon Sep 17 00:00:00 2001 From: Pierre-antoine Comby Date: Mon, 9 Mar 2020 18:06:51 +0100 Subject: [PATCH] remove django guardian settings --- note_kfet/settings/base.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/note_kfet/settings/base.py b/note_kfet/settings/base.py index a1dbb929..4fe12fbf 100644 --- a/note_kfet/settings/base.py +++ b/note_kfet/settings/base.py @@ -128,7 +128,6 @@ PASSWORD_HASHERS = [ AUTHENTICATION_BACKENDS = ( 'django.contrib.auth.backends.ModelBackend', # this is default - 'guardian.backends.ObjectPermissionBackend', ) REST_FRAMEWORK = { @@ -143,10 +142,6 @@ REST_FRAMEWORK = { ] } -ANONYMOUS_USER_NAME = None # Disable guardian anonymous user - -GUARDIAN_GET_CONTENT_TYPE = 'polymorphic.contrib.guardian.get_polymorphic_base_content_type' - # Internationalization # https://docs.djangoproject.com/en/2.2/topics/i18n/