summaryrefslogtreecommitdiff
path: root/tests/admin_checks
AgeCommit message (Collapse)Author
2025-07-23Refs #36500 -- Rewrapped long docstrings and block comments via a script.django-bot
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
2025-05-08Fixed #36363 -- Added field names to admin duplicated fields error hint.Eric Blum
2024-02-05Fixed #10743 -- Allowed lookups for related fields in ModelAdmin.list_display.Tom Carrick
Co-authored-by: Alex Garcia <me@alexoteiza.com> Co-authored-by: Natalia <124304+nessita@users.noreply.github.com> Co-authored-by: Nina Menezes <https://github.com/nmenezes0>
2023-07-07Fixed #9602 -- Added AdminSite.get_model_admin().Mariusz Felisiak
This allows retrieving an admin class for the given model class without using internal attributes.
2023-06-05Fixed #34601 -- Added field name to check message for ↵nessita
ModelAdmin.readonly_fields. Co-authored-by: Rick van Hattem <wolph@wol.ph>
2022-04-25Refs #2259 -- Disallowed primary keys in ModelAdmin.list_editable.siddhartha-star-dev
Refs #32728.
2022-03-15Fixed #31169 -- Adapted the parallel test runner to use spawn.David Smith
Co-authored-by: Valz <ahmadahussein0@gmail.com> Co-authored-by: Nick Pope <nick@nickpope.me.uk>
2022-02-07Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-03-04Corrected messages of admin checks for invalid model field names.Hasan Ramezani
2021-01-13Fixed #16117 -- Added decorators for admin action and display functions.Nick Pope
Refs #25134, #32099.
2020-05-25Fixed #31616 -- Added hint about middleware ordering for SessionMiddleware ↵Hasan Ramezani
admin check.
2020-05-14Fixed #31575 -- Added system check for admin sidebar request context ↵Jon Dufresne
processor dependency. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2019-12-17Fixed #31086 -- Improved error message for admin model inlines with more ↵Shubham singh
than one foreign key to the same parent.
2019-12-14Refs #12679 -- Added test for using property as ModelAdmin.inlines.Baptiste Mispelon
Fixed in 1d8eb0cae57731b481a88dca272b2cb0d645bd8e.
2019-04-26Fixed #30312 -- Relaxed admin check from django.contrib.sessions to ↵Aarni Koskela
SessionMiddleware subclasses.
2019-03-14Fixed #30237 -- Made Authentication/SessionMiddleware and ModelBackend admin ↵Herman S
checks allow subclasses.
2018-10-04Removed Jinja2 dependency from admin_checks tests.Jon Dufresne
2018-08-20Fixed #29695 -- Added system checks for admin's app dependencies and ↵Rodrigo
TEMPLATES setting.
2018-08-19Fixed admin_checks tests to run in isolation.Jon Dufresne
2017-11-06Fixed #28776 -- Fixed a/an/and typos in docs and comments.Дилян Палаузов
2017-06-02Improved test coverage of contrib/admin/checks.py.Anton Samarchyan
2017-02-03Fixed spelling of "nonexistent".Tim Graham
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-10Fixed #26961 -- Made admin checks run when DEBUG=False.Adam Chainz
2017-01-10Fixed #27673 -- Made admin's checks run at check time instead of during ↵Adam Chainz
registration. Thanks Morgan Aubert for the test.
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-08-23Fixed #26998 -- Reverted some admin checks from checking field.many_to_many ↵Collin Anderson
back to isinstance(field, models.ManyToManyField). This partially reverts 983c158da7723eb00a376bd31db76709da4d0260
2016-03-19Refs #24227 -- Replaced M2M isinstance checks by field.many_to_manyClaude Paroz
Thanks Markus Holtermann, Collin Anderson and Tim Graham for the reviews.
2016-02-12Removed unneeded hint=None/obj=None in system check messages.Tim Graham
2016-01-22Fixed #24116 -- Moved AdminSite.check_dependencies() to system checks.Vincenzo Pandolfo
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-09-11Fixed #25374 -- Made ModelAdmin checks work on instances instead of classes.Malcolm Box
This allows dynamically-generated attributes to be specified in checked ModelAdmin attributes without triggering errors.
2015-08-13Fixed #25267 -- Corrected message for admin.E122 system check.Fabrizio Ettore Messina
2015-08-03Fixed #25206 -- Fixed error message when checking a ModelAdmin fieldset's ↵Alasdair Nicol
fields.
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-05-20Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette
2015-02-10Fixed #24146 -- Allowed model._meta.get_field() to be used after ↵Daniel Pyrathon
apps.models_ready
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-01-18Removed support for admin validators per deprecation timeline; refs #16905.Tim Graham
2015-01-12Fixed #24089 -- Added check for when ModelAdmin.fieldsets[1]['fields'] isn't ↵Muthiah Annamalai
a list/tuple.
2014-12-30Applied ignore_warnings to Django testsClaude Paroz
2014-12-17Fixed #23497 -- Made admin system checks run for custom AdminSites.Mosson, Andrew
2014-11-27Fixed #23338 -- Added warning when unique=True on ForeigKeyDiego Guimarães
Thanks Jonathan Lindén for the initial patch, and Tim Graham and Gabe Jackson for the suggestions.
2014-11-03Fixed typos using https://github.com/vlajos/misspell_fixerVeres Lajos
2014-04-26Fix many many typos in comments throughout the codebaseAlex Gaynor
2014-03-084 flake8 warning fixesAlex Gaynor
2014-03-08Fixed #22034 -- Added a specific set of relation checks for ↵Russell Keith-Magee
GenericInlineModelAdmin. Thanks to jwa for the report.