Adding django-guardian

remotes/origin/enhancement/email-actions
Jesús Espino 2013-03-21 20:39:01 +01:00
parent f0cd604539
commit 44cc1f3c57
2 changed files with 6 additions and 0 deletions

View File

@ -210,6 +210,7 @@ INSTALLED_APPS = [
'south', 'south',
'haystack', 'haystack',
'reversion', 'reversion',
'guardian',
] ]
WSGI_APPLICATION = 'greenmine.wsgi.application' WSGI_APPLICATION = 'greenmine.wsgi.application'
@ -295,6 +296,10 @@ DATE_INPUT_FORMATS = (
'%B %d, %Y', '%d %B %Y', '%d %B, %Y' '%B %d, %Y', '%d %B %Y', '%d %B, %Y'
) )
AUTHENTICATION_BACKENDS = (
'django.contrib.auth.backends.ModelBackend', # default
'guardian.backends.ObjectPermissionBackend',
)
HAYSTACK_CONNECTIONS = { HAYSTACK_CONNECTIONS = {
'default': { 'default': {

View File

@ -2,6 +2,7 @@ django
django-grappelli django-grappelli
django-tastypie django-tastypie
django-reversion django-reversion
django-guardian
git+https://github.com/toastdriven/django-haystack.git@master#egg=django-haystack git+https://github.com/toastdriven/django-haystack.git@master#egg=django-haystack
django-celery django-celery
south south