necessary test settings for guardian

This commit is contained in:
bwreilly 2013-09-07 23:16:43 -05:00
parent b07de86ad3
commit 57d6b5fb7c

View File

@ -130,6 +130,10 @@ except ImportError:
pass
else:
ANONYMOUS_USER_ID = -1
AUTHENTICATION_BACKENDS = (
'django.contrib.auth.backends.ModelBackend', # default
'guardian.backends.ObjectPermissionBackend',
)
INSTALLED_APPS += (
'guardian',
)