summaryrefslogtreecommitdiff
path: root/tests/admin_views/models.py
AgeCommit message (Collapse)Author
2026-02-27Fixed #34643 -- Moved inputs beneath labels and errors in admin forms.antoliny0919
Thanks Sarah Boyce and Jacob Walls for reviews. Co-authored-by: Hrushikesh Vaidya <hrushikeshrv@gmail.com>
2026-02-10Modified tests to format PKs with %s rather than %d.Tim Graham
It's how Django formats values internally and makes tests compatible with databases that use non-integer primary keys.
2026-01-30Fixed #36468 -- Fixed failure to close popup when adding a related object in ↵Mark Niehues
the admin. The issue manifested when there were multiple relations and only some of them participated in a filter_horizontal. Regression in cd0479ff764272add5e0aba2afcf5649a241ca00.
2026-01-26Fixed #36850 -- Prevented admin filter sidebar from wrapping below the ↵Nilesh Kumar Pahari
changelist. Removed flex-wrap from .changelist-form-container and added min-width to the main content container to ensure proper layout behavior. Regression in 6ea331907996a51842da55c1f8d65eea7b367c7d.
2025-08-19Fixed #35892 -- Supported Widget.use_fieldset in admin forms.antoliny0919
2025-07-30Fixed #36055 -- Prevented overlap of object-tools buttons and page header in ↵antoliny0919
the admin.
2025-03-01Applied Black's 2025 stable style.Mariusz Felisiak
https://github.com/psf/black/releases/tag/25.1.0
2024-04-02Fixed #35330 -- Fixed the update of related widgets when the referenced ↵devin13cox
model is camel case named. Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2024-02-05Fixed #16281 -- Fixed ContentType.get_object_for_this_type() in a multiple ↵Ben Cail
database setup.
2023-11-14Fixed #34944 -- Made GeneratedField.output_field required.Mariusz Felisiak
Regression in f333e3513e8bdf5ffeb6eeb63021c230082e6f95.
2023-09-16Fixed #31558 -- Added support for boolean attribute on properties in ↵Ryanwalker277
ModelAdmin.list_display.
2023-09-16Fixed #34842 -- Fixed ModelAdmin.readonly_fields crash with GeneratedFields.Paolo Melchiorre
2022-04-15Fixed #11803 -- Allowed admin select widgets to display new related objects.mgaligniana
Adjusted admin javascript to add newly created related objects to already loaded select widgets. In this version, applies only where limit_choices_to is not set.
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-09-30Fixed #33029 -- Allowed multiple popups for self-related fields in admin.Yash Jhunjhunwala
2021-08-27Fixed #33051 -- Fixed highlighting the current model in admin's sidebar with ↵Hasan Ramezani
non-ASCII model names.
2021-04-29Fixed capitalization of "ECMAScript" and "JavaScript".Nick Pope
2021-03-18Fixed #32466 -- Corrected autocomplete to_field resolution for complex cases.Johannes Maron
In MTI or ForeignKey as primary key cases, it is required to fetch the attname from the field instance on the remote model in order to reliably resolve the to_field_name. Co-authored-by: Johannes Maron <info@johanneshoppe.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2021-03-18Refs #29138 -- Added extra tests for autocomplete FK to_field variations.Johannes Maron
2021-02-26Removed unused code in admin_views tests.Jacob Walls
Unused since its introduction in 7b21bfc0745f92f83a6826a3d3e58797fb74e32 and 1e4ad6f118007547c7e627f1d5bd11bfb2992bf9.
2021-01-13Fixed #16117 -- Added decorators for admin action and display functions.Nick Pope
Refs #25134, #32099.
2021-01-12Fixed #29010, Fixed #29138 -- Added limit_choices_to and to_field support to ↵Johannes Maron
autocomplete fields. * Fixed #29010 -- Added limit_choices_to support to autocomplete fields. * Fixed #29138 -- Allowed autocomplete fields to target a custom to_field rather than the PK.
2020-10-08Fixed #31181 -- Added links to related models for admin's readonly fields.Julien Rebetez
2020-04-20Capitalized Unicode in docs, strings, and comments.Jon Dufresne
2019-11-19Fixed #27272 -- Added an on_delete RESTRICT handler to allow cascading ↵Daniel Izquierdo
deletions while protecting direct ones.
2019-06-14Fixed #12952 -- Adjusted admin log change messages to use form labels ↵Sanyam Khurana
instead of field names.
2019-04-01Fixed #30259 -- Fixed crash of admin views when properties don't have ↵Mariusz Felisiak
admin_order_field attribute.
2019-03-24Fixed #30259 -- Added support for admin_order_field attribute on properties ↵Jani Tiainen
in ModelAdmin.list_display.
2019-01-16Fixed #11154, #22270 -- Made proxy model permissions use correct content type.Arthur Rio
Co-Authored-By: Simon Charette <charette.s@gmail.com> Co-Authored-By: Antoine Catton <acatton@fusionbox.com>
2018-12-27Followed style guide for model attribute ordering.Matt Wiens
2018-12-10Moved choices inside of test models per coding style.Manan
2018-03-20Fixed #29227 -- Allowed BooleanField to be null=True.Tim Graham
Thanks Lynn Cyrin for contributing to the patch, and Nick Pope for review.
2018-01-04Fixed #28517 -- Fixed admin delete confirmation view crash when related ↵Paulo
models don't have a delete permission.
2017-09-18Fixed #14370 -- Allowed using a Select2 widget for ForeignKey and ↵Johannes Hoppe
ManyToManyField in the admin. Thanks Florian Apolloner and Tim Graham for review and contributing to the patch.
2017-06-14Fixed #27998 -- Made ManyToManyField changes logged in admin's object history.Lincoln Smith
2017-06-05Fixed #28262 -- Fixed incorrect DisallowedModelAdminLookup when a nested ↵Paulo
reverse relation is in list_filter.
2017-03-06Fixed #27475 -- Fixed NonExistentTimeError crash in ModelAdmin.date_hierarchy.Anton Samarchyan
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-18Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2017-01-07Refs #26961 -- Fixed invalid ModelAdmins in tests.Adam Chainz
2016-09-12Fixed #26524 -- Fixed crash in admin change view when displaying many to ↵Jon Dufresne
many forward refs. Thanks Tim Graham for the regression test.
2016-08-10Fixed admin_views clashing field check error.Adam Chainz
admin_views.Recommendation.recommender: (models.E006) The field 'recommender' clashes with the field 'recommender' from model 'admin_views.title'.
2016-06-04Fixed #19963 -- Added support for date_hierarchy across relations.Vytis Banaitis
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
2016-01-21Fixed #26060 -- Fixed crash with reverse OneToOneField in ↵Alexander Gaevsky
ModelAdmin.readonly_fields.
2016-01-09Refs #25165 -- Fixed JSON serialization for delete popup in the admin.Tim Graham
2016-01-08Refs #25165 -- Fixed JSON serialization for add/edit popup in the admin.Alexander Gaevsky
Forwardport of test in o839d71d8562abe0b245024e55ca1d02a45e58fd from stable/1.9.x (refs #25997).
2016-01-08Refs #25165 -- Fixed failure of admin's "Add another" popup to close.Tim Graham
Thanks Thomas Grainger for the fix.
2015-12-29Fixed #25465 -- Restored line breaks conversion in admin readonly fields.Alexander Gaevsky