summaryrefslogtreecommitdiff
path: root/django/forms
AgeCommit message (Collapse)Author
2014-05-16Fixed #22628 -- Took initial forms into account when combining ↵Stephen Burrows
FormSet.min_num and FormSet.extra. Forwardport of 79f15ab1ef from stable/1.7.x
2014-05-15Fixed #17642 -- Added min_num support to modelformsets, inlines, and the admin.Anders Steinlein
Thanks Stephen Burrows for work on the patch as well. Forwardport of 2914f66983a92fcae55673c517dd8d01e8c238c4 from stable/1.7.x
2014-05-13Fixed #22533 -- Added label_suffix parameter to form fields.Julen Ruiz Aizpuru
Fields can now receive the `label_suffix` attribute, which will override a form's `label_suffix`. This enhances the possibility to customize form's `label_suffix`, allowing to use such customizations while using shortcuts such as `{{ form.as_p }}`. Note that the field's own customization can be overridden at runtime by using the `label_prefix` parameter to `BoundField.label_tag()`. Refs #18134.
2014-05-10Fixed #22502 -- Fixed microseconds/default/form interactionStephen Burrows
Made explicit lack of microsecond handling by built-in datetime form fields. Used that explicitness to appropriately nix microsecond values in bound fields. Thanks Claude Paroz for the review.
2014-05-05Fixed #22570 -- Made Form.__getitem__ KeyError more descriptive.Ben Davis
2014-04-26Fix many many typos in comments throughout the codebaseAlex Gaynor
2014-04-10Refactored some code in SelectDateWidget.Tomasz Wysocki
2014-04-07Removed casting to bool just before negation.Tomasz Wysocki
2014-03-30Corrected many style guide violations that the newest version of flake8 catchesAlex Gaynor
2014-03-27Add a useful stacklevel to some RemovedInDjango19WarningsChris Beaven
2014-03-26Fixed #22114 -- Stopped adding trailing slashes in URLField.to_pythonClaude Paroz
Thanks coredumperror at gmail.com for the report and Tim Graham for the review.
2014-03-24Fixed #17922 -- Added required_css_class to form label.Anubhav Joshi
Thanks hanson2010 for the suggestion.
2014-03-24Fixed #22318 -- Added Form.has_error() to easily check if a given error has ↵Loic Bistuer
happened.
2014-03-22Fixed #20684 -- Added support for HTML5 boolean attributes to form widgets.Loic Bistuer
2014-03-22Made ModelForms raise ImproperlyConfigured if the list of fields is not ↵Tim Graham
specified. Also applies to modelform(set)_factory and generic model views. refs #19733.
2014-03-21Removed backwards compatibility code to call field.widget._has_changed()Tim Graham
This logic should be moved to field._has_changed() as described in ebb504db692cac496f4f45762d1d14644c9fa6f - refs #16612.
2014-03-21Removed warning for Widget.is_hidden property.Tim Graham
refs #22137.
2014-03-21Removed hard-coded help_text for ManyToManyFields that use a SelectMultiple ↵Tim Graham
widget Per deprecation timeline; refs #9321.
2014-03-21Removed django.forms.widgets.RadioInput per deprecation timeline.Tim Graham
refs #4592.
2014-03-21Removed PIL compatability layer per deprecation timeline.Tim Graham
refs #19934.
2014-03-13Fixed #22245 -- Avoided widget overwrite in forms.IntegerField subclassesClaude Paroz
Thanks Jeroen Pulles for the report and Simon Charette for the review.
2014-03-08Fixed #21188 -- Introduced subclasses for to-be-removed-in-django-XX warningsClaude Paroz
Thanks Anssi Kääriäinen for the idea and Simon Charette for the review.
2014-03-06Reworked ErrorDict.as_json() to prevent unnecessary ↵Loic Bistuer
serialization/deserialization step. Thanks @apollo13 for the suggestion. Refs #17413.
2014-03-05Fixed #22206 -- Passed models.TextField.max_length to forms.CharField.maxlengthChris Wilson
2014-03-03Fixed many typos in comments and docstrings.Rodolfo Carvalho
Thanks Piotr Kasprzyk for help with the patch.
2014-03-01Fixed #22137 -- Made Widget.is_hidden a read-only propertyClaude Paroz
Thanks django at patjack.co.uk for the report and the review.
2014-02-28Fixed #21962 -- Added escape_html flag to ErrorDict.as_json()vvojvoda
2014-02-27Fixed #22136 -- Updated comment for Textarea widgetClaude Paroz
Thanks Aymeric Augustin for the suggestion.
2014-02-20Fixed #22097 -- Fixed change detection for TypedChoiceFieldClaude Paroz
Thanks Igor Mitrenko for the report.
2014-02-11Fixed #2445 -- Allowed limit_choices_to attribute to be a callable.Christopher Adams
ForeignKey or ManyToManyField attribute ``limit_choices_to`` can now be a callable that returns either a ``Q`` object or a dict. Thanks michael at actrix.gen.nz for the original suggestion.
2014-02-08Fixed #16192 -- Made unique error messages in ModelForm customizable.Loic Bistuer
Overriding the error messages now works for both unique fields, unique_together and unique_for_date. This patch changed the overriding logic to allow customizing NON_FIELD_ERRORS since previously only fields' errors were customizable. Refs #20199. Thanks leahculver for the suggestion.
2014-01-20Fixed #16905 -- Added extensible checks (nee validation) frameworkRussell Keith-Magee
This is the result of Christopher Medrela's 2013 Summer of Code project. Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian Apolloner, and Alex Gaynor for review notes along the way. Also: Fixes #8579, fixes #3055, fixes #19844.
2014-01-11Fixed #8898 -- Obsoleted SplitDateTimeWidget usage with DateTimeFieldClaude Paroz
Thanks Tim Graham for the review.
2014-01-11Fixed #21752 -- Prevented custom widget step attribute to be overwrittenClaude Paroz
Thanks orcein at gmail.com for the report.
2014-01-10Fixed docstring typo in django/forms/forms.py.Marc Sibson
2013-12-18Refs #17413 -- Added isinstance backward compatibility on ErrorList.Loic Bistuer
2013-12-16Removed duplicated `TimeField` in __all__.Artur Barseghyan
2013-12-16Fixed #17413 -- Serialization of form errors along with all metadata.Loic Bistuer
2013-12-14Fixed E127 pep8 warnings.Loic Bistuer
2013-12-10Fixed E124 pep8 warnings.Loic Bistuer
2013-12-07Fixed #21568 -- Added missing ModelMultipleChoiceField to_python methodClaude Paroz
Thanks dibrovsd at gmail.com for the report and Simon Charette for the review.
2013-11-30Fixed #20867 -- Added the Form.add_error() method.Loic Bistuer
Refs #20199 #16986. Thanks @akaariai, @bmispelon, @mjtamlyn, @timgraham for the reviews.
2013-11-28Fixed E125 pep8 warningsChristopher Medrela
2013-11-25Fixed #21489 -- Make formsets directly importable from django.forms.Loic Bistuer
2013-11-20Fixed #21472 -- Fixed inline formsets display when parent pk is 0Claude Paroz
Thanks agale031176@gmail.com for the report.
2013-11-18Fixed #21397 -- Re-added flexibility to TypedChoiceField coercionClaude Paroz
Thanks Elec for the report and Simon Charette for the review.
2013-11-16Fixed a regression caused by fix for #21428Anssi Kääriäinen
On Python 3 sorting Fields mixed with GenericForeignKeys doesn't work as GenericForeignKey isn't a subclass of django.db.models.fields.Field. Refs #21428.
2013-11-16Fixed #21428 -- editable GenericRelation regressionAnssi Kääriäinen
The GenericRelation refactoring removed GenericRelations from model._meta.many_to_many. This had the side effect of disallowing editable GenericRelations in ModelForms. Editable GenericRelations aren't officially supported, but if we don't fix this we don't offer any upgrade path for those who used the ability to set editable=True in GenericRelation subclass. Thanks to Trac alias joshcartme for the report and stephencmd and Loic for working on this issue.
2013-11-11Fixed #21423 -- Fixed typo in widgets.py.Baptiste Mispelon
2013-11-08Fixed #13970 -- Made SelectDateWidget use the standard widget is_required ↵Claude Paroz
attribute Thanks mitar for the report and Tim Graham for the review.