summaryrefslogtreecommitdiff
path: root/django/contrib/auth/admin.py
AgeCommit message (Collapse)Author
2025-07-22Standardized how method_decorator is used in contrib.auth views and admin.Claude Paroz
Updated django.contrib.auth's views and admin modules to apply decorators consistently.
2025-03-31Refs #28909 -- Simplified code using unpacking generalizations.Aarni Koskela
2025-01-15Refs #22569 -- Made request required in ModelAdmin.lookup_allowed() per ↵Sarah Boyce
deprecation timeline.
2024-08-19Fixed #35678 -- Removed "usable_password" field from BaseUserCreationForm.Natalia
Refs #34429: Following the implementation allowing the setting of unusable passwords via the admin site, the `BaseUserCreationForm` and `UserCreationForm` were extended to include a new field for choosing whether password-based authentication for the new user should be enabled or disabled at creation time. Given that these forms are designed to be extended when implementing custom user models, this branch ensures that this new field is moved to a new, admin-dedicated, user creation form `AdminUserCreationForm`. Regression in e626716c28b6286f8cf0f8174077f3d2244f3eb3. Thanks Simon Willison for the report, Fabian Braun and Sarah Boyce for the review.
2024-07-04Fixed #35520 -- Avoided opening transaction for read-only ModelAdmin requests.Jake Howard
2024-02-20Fixed #34429 -- Allowed setting unusable passwords for users in the auth forms.Fabian Braun
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2023-04-17Fixed #22569 -- Made ModelAdmin.lookup_allowed() respect get_list_filter().sarahboyce
Thank you Simon Meers for the initial patch.
2022-09-15Changed camel case variable to snake case in contrib.admin/auth.Youngkwang Yang
2022-06-22Fixed #33028 -- Used ModelAdmin's opts attribute instead of model._meta.Marcelo Galigniana
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-05-20Fixed #32771 -- Used IS_POPUP_VAR constant instead of hard-coded value.David Sanders
2019-01-02Used 4 space hanging indent for dictionaries.Tim Graham
Thanks Mariusz Felisiak for auditing.
2018-08-17Fixed #29686 -- Made UserAdmin.user_change_password() pass user to ↵Alexander Todorov
has_change_permission().
2018-01-03Fixed #28982 -- Simplified code with and/or.Дилян Палаузов
2017-12-11Fixed #28909 -- Simplified code using tuple/list/set/dict unpacking.Nick Pope
2017-09-20Fixed #28593 -- Added a simplified URL routing syntax per DEP 0201.Sjoerd Job Postmus
Thanks Aymeric Augustin for shepherding the DEP and patch review. Thanks Marten Kenbeek and Tim Graham for contributing to the code. Thanks Tom Christie, Shai Berger, and Tim Graham for the docs.
2017-03-04Refs #27795 -- Removed unneeded force_text callsClaude Paroz
Thanks Tim Graham for the review.
2017-02-07Converted usage of ugettext* functions to their gettext* aliasesClaude Paroz
Thanks Tim Graham for the review.
2017-02-04Refs #27656 -- Updated django.contrib docstring verb style according to PEP 257.Anton Samarchyan
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2016-12-07Refs #17235 -- Made MultiPartParser leave request.POST immutable.Vinay Karanam
2016-09-14Fixed #26170 -- Made ModelAdmin views run transactions on the correct database.Jibodeah
Thanks juntatalor for the initial patch.
2016-04-08Fixed E128 flake8 warnings in django/.Tim Graham
2015-12-31Fixed #26013 -- Moved django.core.urlresolvers to django.urls.Marten Kenbeek
Thanks to Tim Graham for the review.
2015-10-27Fixed #25596 -- Fixed regression in password change view with custom user model.Tim Graham
The reverse() added in 50aa1a790ca66c2a93e0a52e00c53375b269ff49 crashed on a custom user model.
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-08-31Fixed #25324 -- Registered ModelAdmin instances with @admin.register decoratorY3K
2015-03-25Renamed Field.rel attribute to remote_fieldAnssi Kääriäinen
Field.rel is now deprecated. Rel objects have now also remote_field attribute. This means that self == self.remote_field.remote_field. In addition, made the Rel objects a bit more like Field objects. Still, marked ManyToManyFields as null=True.
2015-02-13Fixed #24334 -- Allowed admin password reset to work with non-digit custom ↵Tim Graham
user model primary key. Thanks Loic for help and Simon for review.
2015-02-09Replaced some more hardcoded admin URLsClaude Paroz
2015-02-08Replaced hardcoded URLs in admin_* testsClaude Paroz
Refs #15779. This will allow easier admin URL changes, when needed. Thanks Simon Charette for the review.
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-12-31Fixed #22295 -- Replaced permission check for displaying admin user-toolsThomas Tanner
2014-12-28Deprecated current_app in TemplateResponse and render(_to_response).Aymeric Augustin
2014-04-25Fixed #22515 -- Fixed the object_id of the LogEntry that's created after a ↵Tim Graham
user password change in the admin. Thanks ross at servercode.co.uk for the report.
2014-04-05Fixed #21649 -- Added optional invalidation of sessions when user password ↵Tim Graham
changes. Thanks Paul McMillan, Aymeric Augustin, and Erik Romijn for reviews.
2014-04-03Fixed #22218 -- Deprecated django.conf.urls.patterns.Tim Graham
Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
2014-03-11Tweak password admin change form view context. Refs #21293.Ramiro Morales
2013-12-10Fixed E124 pep8 warnings.Loic Bistuer
2013-10-17Fixed #18659 -- Deprecated request.REQUEST and MergeDictBouke Haarsma
Thanks Aymeric Augustin for the suggestion.
2013-08-02Fixed #18923 -- Corrected usage of sensitive_post_parameters in contrib.authTim Graham
Thanks Collin Anderson for the report.
2013-07-23Fixed #19019 -- Fixed UserAdmin to log password change.Kirill Fomichev
Thanks Tuttle for the report.
2013-07-18Cleaned up UserAdmin.get_form() that worked around a bug fixed in 23e1b59.Loic Bistuer
Refs #18681.
2013-06-19Fixed #20288 -- Fixed inconsistency in the naming of the popup GET parameter.Loic Bistuer
Thanks to Keryn Knight for the initial report and reviews, and to tomask for the original patch.
2013-03-27Fixed #20078: don't allow filtering on password in the user admin.Jacob Kaplan-Moss
2013-03-11Switched the admin to use @transaction.atomic.Aymeric Augustin
2013-03-08Fixed #15363 -- Renamed and normalized to `get_queryset` the methods that ↵Loic Bistuer
return a QuerySet.
2012-12-24Fixed #19505 -- A more flexible implementation for customizable admin ↵Julien Phalip
redirect urls. Work by Julien Phalip. Refs #8001, #18310, #19505. See also 0b908b92a2ca4fb74a103e96bb75c53c05d0a428.
2012-12-04Fixed #18697 -- Made values accepted for two customizable admin templates ↵Ramiro Morales
consistent. Thanks and at cloverfastfood dot com for the report.
2012-11-10Allow custom User models to use the UserAdmin's change password view.Ryan Kaskel