https://github.com/dbrgn/django-auth-mixins
Backport of Django 1.9 auth mixins.
https://github.com/dbrgn/django-auth-mixins
Last synced: 3 months ago
JSON representation
Backport of Django 1.9 auth mixins.
- Host: GitHub
- URL: https://github.com/dbrgn/django-auth-mixins
- Owner: dbrgn
- License: bsd-3-clause
- Created: 2016-03-29T13:52:22.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-29T13:52:29.000Z (over 10 years ago)
- Last Synced: 2026-03-29T06:01:42.051Z (3 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
- https://docs.djangoproject.com/en/1.9/topics/auth/default/#django.contrib.auth.mixins.UserPassesTestMixin
## License
Like Django, see `LICENSE` file.