A Django authentication backend that supports Django's user and group permissions on Django-Nonrel.
Get the code form Github:
git clone https://fhahn@github.com/django-nonrel/django-permission-backend-nonrel.git
add permission_backend_nonrel.backends.NonrelPermissionBackend to your AUTHENTICATION_BACKENDS and permission_backend_nonrel to your INSTALLED_APPS
settings.py:
AUTHENTICATION_BACKENDS = ( ... 'permission_backend_nonrel.backends.NonrelPermissionBackend', ) INSTALLED_APPS = ( ... 'permission_backend_nonrel', )
It's important to put 'permission_backend_nonrel after djangotoolbox, because permission_backend_nonrel.admin replaces djangotoolbox's User admin site.
Permission and groups can be assigned and modified via Django's admin interface:
Now you should be able to use all the standard Django permission methods and decorators, like user.has_perm('foo') and so on.