summaryrefslogtreecommitdiff
path: root/django/forms
AgeCommit message (Collapse)Author
2011-11-15Fixed #15912 -- Ensured that `forms.CharField.widget_attrs()` always returns ↵Julien Phalip
a dictionary. Thanks to tsabi and rubyruy for the report and to mmcnickle and prestontimmons for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17096 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-13Fixed #17134: Corrected Python 2.5 fallback code for parsing microseconds in ↵Karen Tracey
time values. Thanks aaugustin and jcd. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17092 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-12Fixed #17190 -- Ensured that the `NullBooleanSelect` widget's options get ↵Julien Phalip
lazily localized. Thanks to pennersr for the report and to kenth for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17091 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-07Fixed #17125 -- Made it possible to change a `RegexField`'s regular ↵Julien Phalip
expression validator after it has been initialized. Thanks to Claude Paroz for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17076 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-06Fixed #17165 -- Fixed `SelectDateWidget._has_changed()` to work correctly ↵Julien Phalip
with a localized date format. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17071 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-28Fixed #17127 -- Made field validators list independent per form instance. ↵Carl Meyer
Thanks claudep for report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17046 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-18Remove comments referencing encryption. Django doesn't do encryption.Paul McMillan
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17012 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-18Remove all relative imports. We have always been at war with relative imports.Alex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17009 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-17Remove several more relative imports.Alex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17007 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-17Remove more relative imports (I will kill them all).Alex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17006 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-17remove some relative imports from djangoAlex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17003 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-18Fixes #8103 -- Select widget should only allow for one selected optionChris Beaven
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16848 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-10Fixed #11404. Added ``FormSet.has_changed``, for consistancy with ↵Alex Gaynor
``Form.has_changed``. Thanks to michelts for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16773 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-10Make ``Formset.__getitem__`` O(1), rather than O(n). If you override ↵Alex Gaynor
``__iter__`` you now need to also override ``__getitem__`` for consistant behavior. Thanks to Carl and Russ for the review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16770 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-10Fixed #15722: ensure formsets evaluate to True even if they have no forms. ↵Karen Tracey
Thanks mlavin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16756 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-09Fixes #16664 -- URLField's to_python method fails with ValueError on some ↵Chris Beaven
urls on python 2.7. Based on patch by zigzag. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16752 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-09Fix and test for cleaning a non-string value in a URLFieldChris Beaven
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16747 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-23Fixed #15315 -- Added support for the 'widget' argument to ↵Russell Keith-Magee
modelform_factory. Thanks to SardarNL and Will Hardy for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16659 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-12Fixed #16584 -- Fixed a bunch of typos in code comments. Thanks, Bernhard Essl.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16598 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 #16230 -- Correctly escape errors message passed to ErrorDict. Thanks, ↵Jannis Leidel
Gregor Müllegger. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16461 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-26Fixed #16272 -- Removed stale format class attributes of date-related ↵Jannis Leidel
widgets. Thanks, aaugustin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16459 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-16Fixed #15127 -- Properly copy the choices of choice fields. Thanks, dready ↵Jannis Leidel
and Julian Phalip. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16416 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-13Fixed #16246 -- Fixed GenericIPAddressField tests on PostgreSQL.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16395 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-11Minor cosmetic cleanup for r16347.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16367 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-11Fixed #811 -- Added support for IPv6 to forms and model fields. Many thanks ↵Jannis Leidel
to Erik Romijn. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16366 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-10More removal of poorly legible constructs to workaround Python 2.4 shortcomings.Ramiro Morales
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16363 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-09Fixed #9459: forms.HiddenInput and DateTime field loses microseconds. Thanks ↵Andrew Godwin
to mt. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16347 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-07Fixed #14082 -- Use metaclass of provided ModelForm subclass in ↵Carl Meyer
modelform_factory. Thanks jspiros and Stephen Burrows for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16334 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-03Fixed #13770 -- Extended BooleanField form field to also clean `u'false'` to ↵Jannis Leidel
`False`. Thanks, jordanb and Claude Paroz. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16148 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-01Replaced old-style with new-style decorator syntax.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16138 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-01Fixed #5714 -- Strip whitespaces around date and time form field values ↵Jannis Leidel
before converting it to a native type. Thanks to SmileyChris for the initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16137 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-04-22Fixed #13584 -- Optionally allow empty files with django.forms.FileField. ↵Chris Beaven
Thanks for the patch erickr and closedbracket. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16090 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-04-22Fixed #15758 -- Removed stale constants that were missed in r15983.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16084 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-04-22Fixed #6953 -- Correctly sort ManyToMany fields in ModelForms. Thanks, ↵Jannis Leidel
dgouldin, mk and Alex. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16063 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-04-02Removed deprecated en_format helper function.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15983 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-28Removed a bunch more Python 2.4 workarounds now that we don't support that ↵Adrian Holovaty
version. Refs #15702 -- thanks to jonash for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15927 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-14Importing django.forms no longer requires DJANGO_SETTINGS_MODULE. Moved ↵Adrian Holovaty
django.db.connections import in django.forms.models to the method where it's used. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15797 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-21Fixed #15349 - Bound FormSet produces bound empty_formLuke Plant
Thanks to hidde-jan for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15614 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-21Fixed #14099 - BaseModelFormSet should use _should_delete_formLuke Plant
Thanks to kenth for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15612 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-19Fixed #9161 -- Ensure that ModelMultipleChoiceField respects to_field_name ↵Russell Keith-Magee
in validation. Thanks to Honza for the report, and Gregor Müllegger for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15587 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-09Fixed #15182 - Fixed a security issue with ClearableFileInput. Disclosure ↵Carl Meyer
and new release forthcoming. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15470 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-08Fixed #10573 -- Corrected autofocus problem in admin when the first widget ↵Russell Keith-Magee
displayed is a multiwidget. Thanks to rduffield for the report, and to Ramiro and Julien Phalip for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15452 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-05Fixed #15226 - Made SelectDateWidget render the label tag associated with ↵Ramiro Morales
the correct dropdown sub-widget when USE_L10N is active and non-English locale is in use. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15427 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-05Fixed #14984 -- Ensure that ClearableFileInput produces XHTML Strict output. ↵Russell Keith-Magee
Thanks to Luke for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15426 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-05Fixed #15167 -- Ensure that non-form errors are always part of an ErrorList. ↵Russell Keith-Magee
Thanks to Harm Geerts for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15424 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-04Fixed #13968 -- Fixed SelectDateWidget processing of an invalid date input ↵Ramiro Morales
value when USE_L10N is on, for consistency with its behavior when USE_L10N=False (now the form field reports the validation error in both cases). Thanks mitar for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15416 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-25Fixed #14938 - Fixed save-as-new on inline formset with new forms.Carl Meyer
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15306 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-25Removed dead code in modelforms.Carl Meyer
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15305 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-25Fixed #11319 - Added lookup support for ForeignKey.to_field. Also reverted ↵Carl Meyer
no-longer-needed model formsets workaround for lack of such support from r10756. Thanks Russell and Alex for review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15303 bcc190cf-cafb-0310-a4f2-bffc1f526a37