summaryrefslogtreecommitdiff
path: root/tests/admin_checks
Commit message (Collapse)AuthorAgeFilesLines
* Refs #2259 -- Disallowed primary keys in ModelAdmin.list_editable.siddhartha-star-dev2022-04-251-0/+17
| | | | Refs #32728.
* Fixed #31169 -- Adapted the parallel test runner to use spawn.David Smith2022-03-151-0/+2
| | | | | Co-authored-by: Valz <ahmadahussein0@gmail.com> Co-authored-by: Nick Pope <nick@nickpope.me.uk>
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-071-4/+7
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-072-178/+217
|
* Corrected messages of admin checks for invalid model field names.Hasan Ramezani2021-03-041-2/+2
|
* Fixed #16117 -- Added decorators for admin action and display functions.Nick Pope2021-01-131-0/+4
| | | Refs #25134, #32099.
* Fixed #31616 -- Added hint about middleware ordering for SessionMiddleware ↵Hasan Ramezani2020-05-251-0/+6
| | | | admin check.
* Fixed #31575 -- Added system check for admin sidebar request context ↵Jon Dufresne2020-05-141-1/+11
| | | | | | processor dependency. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
* Fixed #31086 -- Improved error message for admin model inlines with more ↵Shubham singh2019-12-171-1/+3
| | | | than one foreign key to the same parent.
* Refs #12679 -- Added test for using property as ModelAdmin.inlines.Baptiste Mispelon2019-12-141-0/+12
| | | | Fixed in 1d8eb0cae57731b481a88dca272b2cb0d645bd8e.
* Fixed #30312 -- Relaxed admin check from django.contrib.sessions to ↵Aarni Koskela2019-04-261-7/+13
| | | | SessionMiddleware subclasses.
* Fixed #30237 -- Made Authentication/SessionMiddleware and ModelBackend admin ↵Herman S2019-03-141-0/+51
| | | | checks allow subclasses.
* Removed Jinja2 dependency from admin_checks tests.Jon Dufresne2018-10-041-1/+1
|
* Fixed #29695 -- Added system checks for admin's app dependencies and ↵Rodrigo2018-08-201-6/+81
| | | | TEMPLATES setting.
* Fixed admin_checks tests to run in isolation.Jon Dufresne2018-08-191-6/+6
|
* Fixed #28776 -- Fixed a/an/and typos in docs and comments.Дилян Палаузов2017-11-061-1/+1
|
* Improved test coverage of contrib/admin/checks.py.Anton Samarchyan2017-06-021-0/+41
|
* Fixed spelling of "nonexistent".Tim Graham2017-02-031-10/+13
|
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-251-1/+1
|
* Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz2017-01-181-2/+0
|
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-181-2/+0
|
* Fixed #26961 -- Made admin checks run when DEBUG=False.Adam Chainz2017-01-101-3/+0
|
* Fixed #27673 -- Made admin's checks run at check time instead of during ↵Adam Chainz2017-01-101-3/+24
| | | | | | registration. Thanks Morgan Aubert for the test.
* Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za2016-11-101-5/+4
|
* Fixed #26998 -- Reverted some admin checks from checking field.many_to_many ↵Collin Anderson2016-08-231-3/+3
| | | | | | back to isinstance(field, models.ManyToManyField). This partially reverts 983c158da7723eb00a376bd31db76709da4d0260
* Refs #24227 -- Replaced M2M isinstance checks by field.many_to_manyClaude Paroz2016-03-191-3/+3
| | | | Thanks Markus Holtermann, Collin Anderson and Tim Graham for the reviews.
* Removed unneeded hint=None/obj=None in system check messages.Tim Graham2016-02-121-33/+12
|
* Fixed #24116 -- Moved AdminSite.check_dependencies() to system checks.Vincenzo Pandolfo2016-01-221-0/+38
|
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-6/+14
|
* Fixed #25374 -- Made ModelAdmin checks work on instances instead of classes.Malcolm Box2015-09-111-58/+55
| | | | | This allows dynamically-generated attributes to be specified in checked ModelAdmin attributes without triggering errors.
* Fixed #25267 -- Corrected message for admin.E122 system check.Fabrizio Ettore Messina2015-08-131-0/+16
|
* Fixed #25206 -- Fixed error message when checking a ModelAdmin fieldset's ↵Alasdair Nicol2015-08-031-4/+4
| | | | fields.
* Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella2015-07-271-7/+7
| | | | ForeignKey/OneToOneField
* Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette2015-05-201-2/+2
|
* Fixed #24146 -- Allowed model._meta.get_field() to be used after ↵Daniel Pyrathon2015-02-102-0/+18
| | | | apps.models_ready
* Sorted imports with isort; refs #23860.Tim Graham2015-02-062-3/+3
|
* Removed support for admin validators per deprecation timeline; refs #16905.Tim Graham2015-01-181-22/+1
|
* Fixed #24089 -- Added check for when ModelAdmin.fieldsets[1]['fields'] isn't ↵Muthiah Annamalai2015-01-121-0/+49
| | | | a list/tuple.
* Applied ignore_warnings to Django testsClaude Paroz2014-12-301-15/+11
|
* Fixed #23497 -- Made admin system checks run for custom AdminSites.Mosson, Andrew2014-12-171-5/+23
|
* Fixed #23338 -- Added warning when unique=True on ForeigKeyDiego Guimarães2014-11-271-0/+5
| | | | | Thanks Jonathan Lindén for the initial patch, and Tim Graham and Gabe Jackson for the suggestions.
* Fixed typos using https://github.com/vlajos/misspell_fixerVeres Lajos2014-11-031-2/+2
|
* Fix many many typos in comments throughout the codebaseAlex Gaynor2014-04-261-1/+1
|
* 4 flake8 warning fixesAlex Gaynor2014-03-081-0/+1
|
* Fixed #22034 -- Added a specific set of relation checks for ↵Russell Keith-Magee2014-03-082-2/+134
| | | | | | GenericInlineModelAdmin. Thanks to jwa for the report.
* Edited contrib.admin check messages for grammar and consistency.Russell Keith-Magee2014-03-031-20/+20
|
* Fixed #22018 -- Fixed checks for ModelAdmin.fields not handling sub-lists.Aaron France2014-02-151-0/+34
| | | | | | | | | | | | | | | | Flatten a level of sublists before checking for duplicate fields. When given sublists such as: ```python class FooAdmin(admin.ModelAdmin): fields = ('one', ('one', 'two')) ``` The previous code did not correctly detect the duplicated 'one' field. Thanks to jwa for the report.
* Fixed typo in error message.Arne Brodowski2014-01-241-1/+1
|
* Fixed #21870 -- Admin check for list_editable_itemArne Brodowski2014-01-241-0/+24
| | | | | | | During the admin check for list_editable _check_list_editable_item should return an empty list if all checks pass. Additionally the Testcase test_readonly_and_editable was changed to test what the name implies instead of duplicating the logic of test_readonly.
* Added warning silencers to some noisy tests.Russell Keith-Magee2014-01-201-9/+14
| | | | | | These warnings all emerged as the result of the introduction of the checks framework. Thanks to Anssi Kääriäinen for the report.