diff --git a/greenmine/settings/common.py b/greenmine/settings/common.py index 77c707fd..46ac235b 100644 --- a/greenmine/settings/common.py +++ b/greenmine/settings/common.py @@ -210,6 +210,7 @@ INSTALLED_APPS = [ 'south', 'haystack', 'reversion', + 'guardian', ] WSGI_APPLICATION = 'greenmine.wsgi.application' @@ -295,6 +296,10 @@ DATE_INPUT_FORMATS = ( '%B %d, %Y', '%d %B %Y', '%d %B, %Y' ) +AUTHENTICATION_BACKENDS = ( + 'django.contrib.auth.backends.ModelBackend', # default + 'guardian.backends.ObjectPermissionBackend', +) HAYSTACK_CONNECTIONS = { 'default': { diff --git a/requirements.txt b/requirements.txt index f25f5773..00dc81d2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,6 +2,7 @@ django django-grappelli django-tastypie django-reversion +django-guardian git+https://github.com/toastdriven/django-haystack.git@master#egg=django-haystack django-celery south