summaryrefslogtreecommitdiff
path: root/tests/regressiontests/forms/forms.py
AgeCommit message (Collapse)Author
2010-11-16Migrated forms (minus localflavor) doctests. A huge thanks to Daniel ↵Russell Keith-Magee
Lindsley for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14570 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-12Added a test for hidden SplitDateTime fields. Thanks, seveas.Malcolm Tredinnick
Fixed #11213 git-svn-id: http://code.djangoproject.com/svn/django/trunk@13816 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-06Fixed #8426 - added 'helptext' CSS class to help text in forms to aid in stylingLuke Plant
Thanks to erikcw for report, mrts and rpbarlow for patch git-svn-id: http://code.djangoproject.com/svn/django/trunk@13519 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-06Fixed #13316 -- Modified the default behavior of PasswordInput to prevent ↵Russell Keith-Magee
reflecting passwords on form failure. Thanks to clouserw for the report. Although this changes nothing at a functional level, this is BACKWARDS INCOMPATIBLE from a UX perspective for anyone that wants passwords to be reflected to the user on form failure. See the 1.3 release notes for details. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13498 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-04Fixed #12164 -- Removed the Python 2.3 compatibility imports and ↵Russell Keith-Magee
workarounds. Thanks to timo and claudep for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13094 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-23Fixed #9336. Changed CheckboxInput to render 'True' and 'False' input ↵Joseph Kocherhans
strings as checked or not instead of as a value attribute. Thanks, bthomas. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12556 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-09Removed unneeded import, thanks Alex Gaynor.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12154 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-09Fixed #12466 - Set HTML class attributes for each field separately. Thanks ↵Jannis Leidel
for the patch, Bernd Schlapsi. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12153 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-09Fixed #11301 - Properly hide SplitHiddenDateTimeWidget. Thanks to David ↵Jannis Leidel
Gouldin for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12152 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-12Fixed #3512: it's now possible to add CSS hooks to required/erroneous form ↵Jacob Kaplan-Moss
rows. Thanks, SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11830 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-12Fixed #11632: Fixed the id for hidden initial widget so that it is different ↵Karen Tracey
from the id for its visible counterpart. Thanks geber@datacollect.com and Mark Lavin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11826 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-05-02Fixed #10349 -- Modified ManyToManyFields to allow initial form values to be ↵Russell Keith-Magee
callables. Thanks to fas for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10652 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-12-05Added a way to iterate over hidden/visible fields in a form. Useful for manualMalcolm Tredinnick
form layout. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9569 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-06Fixed #6160, #9111 -- Consistently apply conditional_escape to form errors ↵Karen Tracey
and labels when outputing them as HTML. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9365 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-25Fixed #7195 -- Fixed the validation of MultipleChoice fields so that they canMalcolm Tredinnick
be populated from request.REQUEST. Based on a patch from Daniel Roseman. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8525 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-19Fixed #6009 -- Added regression tests to show that uploading non-ASCIIMalcolm Tredinnick
filenames now works properly. Patch from Leah Culver. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7987 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-19Fixed #7741: django.newforms is now django.forms. This is obviously a ↵Jacob Kaplan-Moss
backwards-incompatible change. There's a warning upon import of django.newforms itself, but deeper imports will raise errors. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7971 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
2008-07-01Fixed #2070: refactored Django's file upload capabilities.Jacob Kaplan-Moss
A description of the new features can be found in the new [http://www.djangoproject.com/documentation/upload_handing/ upload handling documentation]; the executive summary is that Django will now happily handle uploads of large files without issues. This changes the representation of uploaded files from dictionaries to bona fide objects; see BackwardsIncompatibleChanges for details. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7814 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-18Fixed #4860: added 'for' attributes to labels in newforms widgets. Thanks to ↵Jacob Kaplan-Moss
Ivan Sagalaev and batiste@dosimple.ch for the patches. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7693 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-19Replaced dict reprs in tests with explicit looks at each key. This should ↵Jacob Kaplan-Moss
fix many spurious test failures on other VMs (first noticed on Jython). git-svn-id: http://code.djangoproject.com/svn/django/trunk@7322 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-14Implemented auto-escaping of variable output in templates. Fully ↵Malcolm Tredinnick
controllable by template authors and it's possible to write filters and templates that simulataneously work in both auto-escaped and non-auto-escaped environments if you need to. Fixed #2359 See documentation in templates.txt and templates_python.txt for how everything works. Backwards incompatible if you're inserting raw HTML output via template variables. Based on an original design from Simon Willison and with debugging help from Michael Radziej. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6671 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-19Fixed #5546: split form unit tests into manageable chunks. This isn't a ↵Jacob Kaplan-Moss
perfect fix since the chunks aren't yet autodiscovered, but that shouldn't prevent checking this in. Thanks, Leo Soto. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6379 bcc190cf-cafb-0310-a4f2-bffc1f526a37