summaryrefslogtreecommitdiff
path: root/tests/modeladmin/tests.py
AgeCommit message (Collapse)Author
2016-10-07Fixed #24941 -- Added ModelAdmin.get_exclude().Zach Borboa
Thanks Ola Sitarska for the initial patch.
2016-10-05Refs #27218 -- Fixed LogEntry tests on MySQL 5.5.Tim Graham
2016-10-04Fixed #27218 -- Returned LogEntry instances from ModelAdmin.log_*() methods.François Freitag
2016-09-21Fixed #27256 -- Changed Select widget's selected attribute to use HTML5 ↵Jon Dufresne
boolean syntax.
2016-08-24Fixed #26816 -- Corrected an admin check to require inlines to subclass ↵Berker Peksag
InlineModelAdmin.
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-06-04Fixed #19963 -- Added support for date_hierarchy across relations.Vytis Banaitis
2016-04-21Fixed #22383 -- Added support for HTML5 required attribute on required form ↵Jon Dufresne
fields.
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
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-03-01Fixed #26229 -- Improved check for model admin check admin.E124Alasdair Nicol
Refs #22792
2016-02-12Removed unneeded hint=None/obj=None in system check messages.Tim Graham
2015-12-03Fixed many spelling mistakes in code, comments, and docs.Josh Soref
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-07-02Fixed #24908 -- Fixed duplicate readonly field rendering.jpic
ModelAdmin added readonly_fields to exclude, but would not undeclare them if they were overridden.
2015-05-20Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette
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-10Fixed #13165 -- Added edit and delete links to admin foreign key widgets.Simon Charette
Thanks to Collin Anderson for the review and suggestions and Tim for the final review.
2014-12-30Applied ignore_warnings to Django testsClaude Paroz
2014-12-05Refs #23947 -- Made a modeladmin test cleanup after itself.Diego Guimarães
2014-06-13Fixed #6327 -- Added has_module_permission method to BaseModelAdminMaxime Turcotte
Thanks chrj for the suggestion.
2014-06-10Fixed #22792 -- Updated checks for list_display_links in model adminGreg Chapple
2014-05-15Fixed #17642 -- Added min_num support to modelformsets, inlines, and the admin.Anders Steinlein
Thanks Stephen Burrows for work on the patch as well. Forwardport of 2914f66983a92fcae55673c517dd8d01e8c238c4 from stable/1.7.x
2014-03-09Fixed #22237 -- Removed some warnings in the test suiteClaude Paroz
Thanks Aymeric Augustin for the report.
2014-03-08Fixed #21188 -- Introduced subclasses for to-be-removed-in-django-XX warningsClaude Paroz
Thanks Anssi Kääriäinen for the idea and Simon Charette for the review.
2014-03-04Fixed three small flake8 violations.Alex Gaynor
2014-03-03Fixed broken tests on Python 3 after 3c5fc708f1a8f60c05182869f6f3ec13697bbcf2.Baptiste Mispelon
2014-03-03Fixed many typos in comments and docstrings.Rodolfo Carvalho
Thanks Piotr Kasprzyk for help with the patch.
2014-03-03Edited contrib.admin check messages for grammar and consistency.Russell Keith-Magee
2014-01-31Updated some tests to use the check framework and silenced a ↵Tim Graham
PendingDeprecationWarning.
2014-01-20Fixed #16905 -- Added extensible checks (nee validation) frameworkRussell Keith-Magee
This is the result of Christopher Medrela's 2013 Summer of Code project. Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian Apolloner, and Alex Gaynor for review notes along the way. Also: Fixes #8579, fixes #3055, fixes #19844.
2013-12-23Imported override_settings from its new location.Aymeric Augustin
2013-12-10Fixed E124 pep8 warnings.Loic Bistuer
2013-11-02Fixed #21302 -- Fixed unused imports and import *.Tim Graham
2013-10-26Fix all violators of E231Alex Gaynor
2013-10-23Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol
2013-10-21Removed some direct settings manipulations in tests; refs #21230.Bouke Haarsma
2013-10-19Removed unused local variables in tests.Tim Graham
2013-10-02Fixed #21129 -- Prevented admin filter params modifications from throwing an ↵tschilling
exception. Thanks Tuttle for the report.
2013-10-01Fixed #15185 -- Allowed ModelAdmin.list_display_links=None to disable change ↵Ramiro Morales
list links. Thanks rm_ for the suggestion.
2013-09-20Fixed #20702 -- Deprecated get_formsets in favor of get_formsets_with_inlines.tschilling
Thanks stanislas.guerra at gmail.com for the report.
2013-08-04Introduced ModelAdmin.get_fields() and refactored get_fieldsets() to use it.Loic Bistuer
Refs #18681. This also starts the deprecation of ModelAdmin.declared_fieldsets
2013-07-29Removed most of absolute_import importsClaude Paroz
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
2013-07-01Stopped using django.utils.unittest in the test suite.Aymeric Augustin
Refs #20680.
2013-06-05Fixed #19080 -- Fine-grained control over select_related in adminTomek Paczkowski
2013-05-31Fixed #18681 -- BaseModelAdmin.get_form and InlineModelAdmin.get_formset no ↵Loic Bistuer
longer bypass get_fieldsets Thanks msopacua for the report.
2013-05-19Fixed #12674 -- provide a way to override admin validationHonza Kral
Moved admin validation code to classes and have those be class attributes to the ModelAdmin classes.
2013-05-09Fixed #19733 - deprecated ModelForms without 'fields' or 'exclude', and ↵Luke Plant
added '__all__' shortcut This also updates all dependent functionality, including modelform_factory and modelformset_factory, and the generic views `ModelFormMixin`, `CreateView` and `UpdateView` which gain a new `fields` attribute.