summaryrefslogtreecommitdiff
path: root/django/forms
AgeCommit message (Collapse)Author
2014-04-21[1.7.x] Corrected many style guide violations that the newest version of ↵Alex Gaynor
flake8 catches Backport of 778ce245dd466bce1b19f89e52cf9ed8f1b46513 from master
2014-03-27[1.7.x] Add a useful stacklevel to some RemovedInDjango19WarningsChris Beaven
Backport of b077ba7ac1 from master
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.
2013-11-03Fixed all E226 violationsAlex Gaynor
2013-11-03Merge pull request #1852 from jasonamyers/cleanup/PEP8Alex Gaynor
Cleanup/pep8 tests
2013-11-03Merge pull request #1861 from milmazz/E251Alex Gaynor
Fixed flake8 E251 violations
2013-11-03Merging in masterJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-11-03Fixed #20849 -- ModelForms do not work well with prefetch_related.Jim Bailey
model_to_dict() (used when rendering forms) queries the database to get the list of primary keys for ManyToMany fields. This is unnecessary if the field queryset has been prefetched, all the keys are already in memory and can be obtained with a simple iteration.
2013-11-03Fixed flake8 E251 violationsMilton Mazzarri
2013-11-02Fixing E302 ErrorsJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-11-02Fixed the remaining E302 violations int eh django packageAlex Gaynor
2013-11-02More attacking E302 violatorsAlex Gaynor
2013-11-02Fixed flake8 E241Boryslav Larin
2013-11-02Merge pull request #1848 from rayashmanjr/masterAlex Gaynor
Correct flake8 violation E261
2013-11-02Correct flake8 violation E261Ray Ashman Jr
2013-11-02Fixed #21302 -- Fixed unused imports and import *.Tim Graham
2013-10-30Fixed #14877 -- repeated deletion using formsetsAnssi Kääriäinen
When a formset contained deletion for an existing instance, and the instance was already deleted, django threw an exception. A common cause for this was resubmit of the formset. Original patch by Trac alias olau. In addition this commit cleaned some code in _construct_form(). This was needed as the primary key value the user submitted wasn't converted correctly to python value in case the primary key field was also a related field.
2013-10-26Fixed all the E203 violationsAlex Gaynor
2013-10-26Fixed up some more flake8 violations (this particular violation still has ↵Alex Gaynor
many occurrences in the tests/ dir so it can't be removed from setup.cfg yet)
2013-10-24Start attacking E231 violationsAlex Gaynor
2013-10-23Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol