django/tests/auth_tests
Markus Holtermann e5cb4e1411 Fixed #24914 -- Added authentication mixins for CBVs
Added the mixins LoginRequiredMixin, PermissionRequiredMixin and
UserPassesTestMixin to contrib.auth as counterparts to the respective
view decorators.

The authentication mixins UserPassesTestMixin, LoginRequiredMixin and
PermissionRequiredMixin have been inspired by django-braces
<https://github.com/brack3t/django-braces/>

Thanks Raphael Michel for the initial patch, tests and docs on the PR
and Ana Balica, Kenneth Love, Marc Tamlyn, and Tim Graham for the
review.
2015-06-17 23:19:10 +02:00
..
fixtures Converted test fixtures to setUpTestData methods 2015-03-05 10:10:32 +11:00
models Fixed #24910 -- Added createsuperuser support for non-unique USERNAME_FIELDs 2015-06-06 09:33:02 -04:00
templates Moved contrib.auth tests out of contrib. 2015-02-11 10:19:22 -05:00
__init__.py Moved contrib.auth tests out of contrib. 2015-02-11 10:19:22 -05:00
backend_alias.py Moved contrib.auth tests out of contrib. 2015-02-11 10:19:22 -05:00
common-passwords-custom.txt Fixed #16860 -- Added password validation to django.contrib.auth. 2015-06-07 19:31:20 +02:00
settings.py Moved contrib.auth tests out of contrib. 2015-02-11 10:19:22 -05:00
test_auth_backends.py Refs #24652 -- Used SimpleTestCase where appropriate. 2015-05-20 13:46:13 -04:00
test_basic.py Moved contrib.auth tests out of contrib. 2015-02-11 10:19:22 -05:00
test_context_processors.py Refs #24652 -- Used SimpleTestCase where appropriate. 2015-05-20 13:46:13 -04:00
test_decorators.py Fixed #24929 -- Allowed permission_required decorator to take any iterable 2015-06-08 13:44:39 -04:00
test_forms.py Refs #16860 -- Minor edits and fixes to password validation. 2015-06-10 07:41:01 -04:00
test_handlers.py Moved contrib.auth tests out of contrib. 2015-02-11 10:19:22 -05:00
test_hashers.py Fixed #24115 -- Allowed bcrypt hashers to upgrade passwords on rounds change. 2015-03-30 18:52:59 -04:00
test_management.py Fixed #24910 -- Added createsuperuser support for non-unique USERNAME_FIELDs 2015-06-06 09:33:02 -04:00
test_middleware.py Moved contrib.auth tests out of contrib. 2015-02-11 10:19:22 -05:00
test_mixins.py Fixed #24914 -- Added authentication mixins for CBVs 2015-06-17 23:19:10 +02:00
test_models.py Converted test fixtures to setUpTestData methods 2015-03-05 10:10:32 +11:00
test_remote_user.py Moved contrib.auth tests out of contrib. 2015-02-11 10:19:22 -05:00
test_signals.py Converted test fixtures to setUpTestData methods 2015-03-05 10:10:32 +11:00
test_templates.py Moved contrib.auth tests out of contrib. 2015-02-11 10:19:22 -05:00
test_tokens.py Use mock.patch in migrations tests 2015-04-09 11:16:12 +10:00
test_validators.py Refs #16860 -- Fixed a resource and deprecation warning in password validation. 2015-06-16 11:02:27 -04:00
test_views.py Fixed #24696 -- Made CSRF_COOKIE computation lazy. 2015-05-02 19:45:14 -04:00
urls.py Fixed #21927 -- Made application and instance namespaces more distinct. 2015-06-08 15:12:20 -04:00
urls_admin.py Fixed #21927 -- Made application and instance namespaces more distinct. 2015-06-08 15:12:20 -04:00
urls_custom_user_admin.py Fixed #21927 -- Made application and instance namespaces more distinct. 2015-06-08 15:12:20 -04:00