summaryrefslogtreecommitdiff
path: root/django/contrib/auth
AgeCommit message (Collapse)Author
2013-12-29Added AppConfig.get_models().Aymeric Augustin
2013-12-29Cleared get_models cache when swapping User model.Aymeric Augustin
Thanks Florian for isolating the shortest way to reproduce this issue: ./runtests.py \ django.contrib.auth.tests.test_context_processors.AuthContextProcessorTests.test_perms_attrs \ django.contrib.auth.tests.test_auth_backends.ChangedBackendSettingsTest.test_changed_backend_settings \ django.contrib.auth.tests.test_auth_backends.CustomUserModelBackendAuthenticateTest.test_authenticate \ django.contrib.auth.tests.test_basic.BasicTestCase.test_createsuperuser_management_command
2013-12-29Refactored the migration signals to use app configs.Aymeric Augustin
De-aliased pre/post_syncdb to pre/post_migrate to increase backwards-compatibility.
2013-12-28Changed get_model to raise an exception on errors.Aymeric Augustin
Returning None on errors required unpythonic error checking and was inconsistent with get_app_config. get_model was a private API until the previous commit, but given that it was certainly used in third party software, the change is explained in the release notes. Applied the same change to get_registered_model, which is a new private API introduced during the recent refactoring.
2013-12-26Removed a few gratuitous lambdas.Aymeric Augustin
2013-12-26Added missing newline in previous commit.Tim Graham
2013-12-26Fixed #21627 -- Added unicode_literals to changepassword command.Jon Lønne
Fixed a crash when executing changepassword command when the user object representation contained non-ASCII characters.
2013-12-24Renamed AppCache to Apps.Aymeric Augustin
Also renamed app_cache to apps and "app cache" to "app registry". Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
2013-12-23Imported override_settings from its new location.Aymeric Augustin
2013-12-23Refactored INSTALLED_APPS overrides.Aymeric Augustin
* Introduced [un]set_installed_apps to handle changes to the INSTALLED_APPS setting. * Refactored [un]set_available_apps to share its implementation with [un]set_installed_apps. * Implemented a receiver to clear some app-related caches. * Removed test_missing_app as it is basically impossible to reproduce this situation with public methods of the new app cache.
2013-12-22Moved apps back in the toplevel django namespace.Aymeric Augustin
Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
2013-12-17Moved the new app cache inside core.Aymeric Augustin
2013-12-17Deprecated get_app().Aymeric Augustin
2013-12-17Removed module-level functions for the app cache.Aymeric Augustin
Since the original ones in django.db.models.loading were kept only for backwards compatibility, there's no need to recreate them. However, many internals of Django still relied on them. They were also imported in django.db.models. They never appear in the documentation, except a quick mention of get_models and get_app in the 1.2 release notes to document an edge case in GIS. I don't think that makes them a public API. This commit doesn't change the overall amount of global state but clarifies that it's tied to the app_cache object instead of hiding it behind half a dozen functions.
2013-12-17Moved django.db.models.loading to django.apps.cache.Aymeric Augustin
This commit doesn't contain any code changes; it's purely a refactoring.
2013-12-14Fixed #21250 -- Made HTTP auth user header configurable in testsBartolomé Sánchez
Currently, if the authentication mechanism uses a custom HTTP header and not REMOTE_USER, it is not easy to test. This commit modifies remote user tests in order to make them more generic.
2013-12-14Fixed E127 pep8 warnings.Loic Bistuer
2013-12-12Fixed #21473 -- Limited language preservation to logoutLudwik Trammer
Current language is no longer saved to session by LocaleMiddleware on every response (the behavior introduced in #14825). Instead language stored in session is reintroduced into new session after logout. Forward port of c558a43fd6 to master.
2013-12-10Fixed E124 pep8 warnings.Loic Bistuer
2013-11-30Fixed #21535 -- Fixed password hash iteration upgrade.Tim Graham
Thanks jared_mess for the report.
2013-11-30Removed gender-based pronouns per [c0a2daad78].Tim Graham
2013-11-29Fixed an unescisarily gendered pronoun in a docstringAlex Gaynor
2013-11-28Fixed E125 pep8 warningsChristopher Medrela
2013-11-14Propagate get_user_model exception from get_userMatt Robenolt
Fixes #21439
2013-11-11Fixed #21388 -- Corrected language code for FrisianBouke Haarsma
2013-11-09Fixed #21398 -- Fixed BCryptSHA256PasswordHasher with py-bcrypt and Python 3.Tim Graham
Thanks arjan at anymore.nl for the report.
2013-11-06Fixed #21387 -- Merge two very similar help texts.Ramiro Morales
2013-11-02Fixed #21302 -- Fixed unused imports and import *.Tim Graham
2013-10-31Started attackign the next flake8 violationAlex Gaynor
2013-10-24Start attacking E231 violationsAlex Gaynor
2013-10-23Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol
2013-10-22Fixed E221 pep8 warnings.Tim Graham
2013-10-21Fixed #21275 -- Fixed a serializer error when generating migrations for ↵Loic Bistuer
contrib.auth. The migration serializer now looks for a deconstruct method on any object.
2013-10-21Force update of the password on iteration count changes.Florian Apolloner
2013-10-21Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol
2013-10-19Fixed #21291 -- Ensured inactive users cannot reset their passwordsClaude Paroz
Thanks kz26 for the report and the suggested fix. Refs #19758.
2013-10-19Cleaned formatting/comments in PasswordResetFormTestClaude Paroz
2013-10-18Fixed bug causing CSRF token not to rotate on login.Tim Graham
Thanks Gavin McQuillan for the report.
2013-10-18Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol
2013-10-18Fixed #21268 -- Fixed E303 pep8 warningsAlasdair Nicol
2013-10-17Fixed #21285 -- Fixed E121,E122 pep8 warningsAlasdair Nicol
2013-10-17Fixed #18659 -- Deprecated request.REQUEST and MergeDictBouke Haarsma
Thanks Aymeric Augustin for the suggestion.
2013-10-16Avoided hardcoding Permission.name max_lengthTim Graham
refs #18866.
2013-10-14Fixed #18866 -- added validation error for verbose_name longer than 39 ↵joaoxsouls
characters Added a validation error check when creating the permissions for model, to avoid cryptic database error when the verbose_name is longer than 39 characters thanks elena for reporting it
2013-10-14Imported custom user classes in tests depending on itClaude Paroz
Without those imports, affected test files cannot be run independently. Refs #21164.
2013-10-10Whitespace cleanup.Tim Graham
* Removed trailing whitespace. * Added newline to EOF if missing. * Removed blank lines at EOF. * Removed some stray tabs.
2013-10-10Fixed "redefinition of unused 'foo' from line X" pyflakes warnings.Tim Graham
2013-10-08Fixed #21164 -- Added documentation for issue with test users.Russell Keith-Magee
The package renaming restores the older package names (which were also the documented package names). This doesn't affect test discovery because the module in question doesn't contain any tests. Thanks to Carl for the design discussion.
2013-10-02Fixed #16919 -- Passed user to set_password_form in GET requests.Tim Graham
Thanks Jaime Irurzun for the report and initial patch and ejucovy for the test.
2013-09-24Revert "Ensure that passwords are never long enough for a DoS."Florian Apolloner
This reverts commit aae5a96d5754ad34e48b7f673ef2411a3bbc1015. This fix is no longer necessary, our pbkdf2 (see next commit) implementation no longer rehashes the password every iteration.