summaryrefslogtreecommitdiff
path: root/tests/regressiontests/admin_widgets
AgeCommit message (Collapse)Author
2010-05-21Fixed #13560 -- Fixed localization of widgets.Jannis Leidel
Particularly this fixes the SplitDateTimeField and the AdminDateWidget by localizating the widget's value in its render method instead of the form field. Thanks to David Danier for the report and Russell for help with the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13296 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-08Fixed #12024: Changed admin code to avoid raising an exception when a field ↵Karen Tracey
listed in raw_id_fields has limit_choices_to specified as a Q object. Tweaked a test to trigger the condition and verify the fix. Finally, documented that limit_choices_to specified as a Q object has no effect on the choices available for fields listed in raw_id_fields, and removed another incorrect note that claimed limit_choices_to had no effect on inlines in the admin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12728 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-02Fixed #11465: Ensure nonexistent pks enterd in an admin raw id field do notKaren Tracey
cause a server error. Thanks for report and initial patch sacre@wp.pl. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12648 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-17Fixed #12705 -- Date/time and select filter widgets now work again with ↵Justin Bronn
newly added inline forms in the admin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12454 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-13Fixed #12378 -- Removed some tests made redundant by feature deprecation. ↵Russell Keith-Magee
Thanks to jcd for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12418 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-30Fixed #12444 - Date based widgets now correctly handle input values when ↵Jannis Leidel
using locale-aware formatting. Also fixes #7656. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12029 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-14Fixed #12367 -- Modified test urls to avoid the DeprecationWarning caused by ↵Russell Keith-Magee
old-style admin inclusions. Thanks to Travis Cline for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11861 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-07-23Fixed #11532 -- Corrected the link used for edit_inline foreign keys in ↵Russell Keith-Magee
admin when the admin is deployed using the old style admin.root approach. Thanks to JP for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11314 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-07-16Fixed #10061 -- Added namespacing for named URLs - most importantly, for the ↵Russell Keith-Magee
admin site, where the absence of this facility was causing problems. Thanks to the many people who contributed to and helped review this patch. This change is backwards incompatible for anyone that is using the named URLs introduced in [9739]. Any usage of the old admin_XXX names need to be modified to use the new namespaced format; in many cases this will be as simple as a search & replace for "admin_" -> "admin:". See the docs for more details on the new URL names, and the namespace resolution strategy. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11250 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-08Fixed #10059: `ModelAdmin.formfield_for_dbfield` now handles custom `Field` ↵Jacob Kaplan-Moss
subclasses. Thanks, Alex Gaynor. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10454 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-30Fixed #10537: Fixed the foreign key add-another link in list_editable. ↵Jacob Kaplan-Moss
Thanks, Alex and jezdez. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10235 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-01-16Changed "date" column to "start_date"--Oracle won't name columns with ↵Matt Boersma
reserved keywords. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9764 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-01-16Cleaned up and refactored `ModelAdmin.formfield_for_dbfield`:Jacob Kaplan-Moss
* The new method uses an admin configuration option (`formfield_overrides`); this makes custom admin widgets especially easy. * Refactored what was left of `formfield_for_dbfield` into a handful of smaller methods so that it's easier to hook in and return custom fields where needed. * These `formfield_for_*` methods now pass around `request` so that you can easily modify fields based on request (as in #3987). Fixes #8306, #3987, #9148. Thanks to James Bennet for the original patch; Alex Gaynor and Brian Rosner also contributed. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9760 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-15Fixed #9258 -- Use _default_manager in ↵Brian Rosner
ForeignKeyRawIdWidget.label_for_value. Thanks nullie for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9444 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02Fixed #8787 -- Fixed failing admin_widgets tests. This fixes ↵Brian Rosner
ManyToManyRawIdWidget which was broken with [8823]. Thanks Alex Gaynor. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8846 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01Fixed #8648 -- Admin no longer ignores to_field. Thanks for the help Karen ↵Brian Rosner
Tracey and SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8823 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-10Fixed #7250 -- Don't show internal data of a FileField in the admin when the ↵Brian Rosner
form does not validate. This also alternatively fixes a recent problem since [8244] when the form is not valid. Thanks Marc Garcia for the initial ticket. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8277 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-08Use a FileField instead of an ImageField in the admin_widgets test so that ↵Jacob Kaplan-Moss
folks without PIL can still run the tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8255 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-08File storage refactoring, adding far more flexibility to Django's file ↵Jacob Kaplan-Moss
handling. The new files.txt document has details of the new features. This is a backwards-incompatible change; consult BackwardsIncompatibleChanges for details. Fixes #3567, #3621, #4345, #5361, #5655, #7415. Many thanks to Marty Alchin who did the vast majority of this work. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8244 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-18Merged the newforms-admin branch into trunk.Brian Rosner
This is a backward incompatible change. The admin contrib app has been refactored. The newforms module has several improvements including FormSets and Media definitions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7967 bcc190cf-cafb-0310-a4f2-bffc1f526a37