summaryrefslogtreecommitdiff
path: root/tests/regressiontests/admin_validation
AgeCommit message (Collapse)Author
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner
2013-02-02Fixed #19445 -- Skip admin fieldsets validation when the ↵Nick Sandford
ModelAdmin.get_form() method is overridden.
2012-08-12[py3] Refactored __unicode__ to __str__.Aymeric Augustin
* Renamed the __unicode__ methods * Applied the python_2_unicode_compatible decorator * Removed the StrAndUnicode mix-in that is superseded by python_2_unicode_compatible * Kept the __unicode__ methods in classes that specifically test it under Python 2
2011-10-13Convert much of the regression tests to use absolute imports. There's still ↵Alex Gaynor
work to be done though. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16976 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-13Fixed #14503 -- Unified multiple implementations of test cases assert* ↵Ramiro Morales
methods that verify a given exception is raised by a callable throughout the Django test suite. Replaced them with a new assertRaisesMessage method of a new SimpleTestCase, a lightweight subclass of unittest.TestCase. Both are also available for usage in user tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16610 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-07-13Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for ↵Jannis Leidel
the work on the patch and Alex for reviewing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-26Fixed #15669 -- Included app label in admin validation messages. Thanks, ↵Jannis Leidel
lamby and Jure Cuhalev. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16462 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-22Fix UnboundLocalError than could occur during ModelAdmin validation.Karen Tracey
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16262 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-14Added ability to describe grouping of form fields in the same row to the ↵Ramiro Morales
`fields` ModelAdmin attribute. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16225 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-26Fixed #15424 -- Corrected lookup of callables listed in admin inlines' ↵Ramiro Morales
`readonly_fields` by passing the right ModelAdmin (sub)class instance when instantiating inline forms admin wrappers. Also, added early validation of its elements. Thanks kmike for the report and Karen for the patch fixing the issue. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15650 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-27Migrated admin_validation doctests. Thanks to Sebastian Hillig.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13883 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-09Fixed #12689: Fixed admin validation to report an error on invalid exclude ↵Karen Tracey
specification. Thanks for report to bparker and for patch with tests to ramiro. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12734 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-08Fixed #12481: Updated admin validation code to not reject non-editable ↵Karen Tracey
fields in readonly_fields, since these are handled fine by the display code itself. Thanks lashni and Alex. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12730 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-23ModelAdmin.fields wasn't able to refer to fields only on a custom formBrian Rosner
Regressed in r11737 which used get_field instead of opts.get_field and ignoring fields not found. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12279 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-22Fixed #342 -- added readonly_fields to ModelAdmin. Thanks Alex Gaynor for ↵Brian Rosner
bootstrapping the patch. ModelAdmin has been given a readonly_fields that allow field and calculated values to be displayed alongside editable fields. This works on model add/change pages and inlines. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11965 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-11-19Corrected a regression in validation of admin fieldsets with nested ↵Russell Keith-Magee
definitions from r11744. Thanks to Davor Lučić for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11752 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-11-18Fixed #12237 -- Improved the error message for m2m fields with an explicit ↵Russell Keith-Magee
through model being listed in admin fieldsets. Thanks to Pyth for the report and Ramiro Morales for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11744 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-11-13Refs #12203 -- Improved error handling for the case where a user manually ↵Russell Keith-Magee
specifies an m2m field with an explicit through field. Thanks to dgouldin for the report, and Ramiro Morales for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11737 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-11-13Fixed #12209 -- Made the through attribute on a m2m relation into a property ↵Russell Keith-Magee
to ensure that the fully resolved through model is always provdided. Thanks to dgouldin for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11736 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-10-19Moved the call to _get_foreign_key to run in all cases catching incorrect ↵Brian Rosner
inline setup sooner. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11631 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-10-19Fixed #11709 — Pass inline fk_name attribute when grabbing foreign key to ↵Brian Rosner
test for exclusion. Thanks yishaibeeri for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11630 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-05-03Fixed #9932 -- Added a validation error when an inline tries to exclude the ↵Russell Keith-Magee
foreign key that provides the link to the parent model. Thanks to david for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10668 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28Fixed #8027: correctly validate fields/fieldsets in `ModelAdmin` validation ↵Jacob Kaplan-Moss
when using custom `ModelForm`s. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8662 bcc190cf-cafb-0310-a4f2-bffc1f526a37