summaryrefslogtreecommitdiff
path: root/tests/regressiontests/admin_validation
AgeCommit message (Collapse)Author
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