Backport of Django 1.9 auth mixins.
Project description
# Django Auth Mixins
Backport of Django 1.9 [auth mixins](https://github.com/django/django/blob/1.9.4/django/contrib/auth/mixins.py) for Django 1.8.x LTS:
LoginRequiredMixin
PermissionRequiredMixin
UserPassesTestMixin
## Usage
from auth_mixins import LoginRequiredMixin, PermissionRequiredMixin, UserPassesTestMixin
## Docs
https://docs.djangoproject.com/en/1.9/topics/auth/default/#the-loginrequired-mixin
https://docs.djangoproject.com/en/1.9/topics/auth/default/#the-permissionrequiredmixin-mixin
## License
Like Django, see LICENSE file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.