chillaranand
dc165ec8e5
Refs #23919 -- Replaced super(ClassName, self) with super() in docs.
2017-01-25 11:53:05 -05:00
Tim Graham
f6acd1d271
Refs #23919 -- Removed Python 2 notes in docs.
2017-01-18 11:51:29 -05:00
Tim Graham
e27e4c0339
Removed versionadded/changed annotations for 1.10.
2017-01-17 20:52:05 -05:00
Tim Graham
bcf3532ede
Refs #26154 -- Removed deprecated CommaSeparatedIntegerField.
2017-01-17 20:52:02 -05:00
Tim Graham
87c5e7efeb
Refs #27186 -- Fixed model form default fallback for CheckboxSelectMultiple.
2016-09-30 14:49:50 -04:00
Tim Graham
3507d4e773
Fixed #27186 -- Fixed model form default fallback for MultiWidget, FileInput, SplitDateTimeWidget, SelectDateWidget, and SplitArrayWidget.
...
Thanks Matt Westcott for the review.
2016-09-22 12:20:58 -04:00
Jon Dufresne
2c716c1dc7
Fixed #27256 -- Changed Select widget's selected attribute to use HTML5 boolean syntax.
2016-09-21 15:12:13 -07:00
Tim Graham
4bc6b93994
Fixed #27039 -- Fixed empty data fallback to model field default in model forms.
2016-08-24 17:50:10 -04:00
Jon Dufresne
267dc4addd
Fixed #4136 -- Made ModelForm save empty values for nullable CharFields as NULL.
...
Previously, empty values were saved as strings.
2016-06-13 09:14:36 -04:00
Ed Henderson
4a4d7f980e
Fixed #26021 -- Applied hanging indentation to docs.
2016-06-03 11:44:34 -04:00
Sergey Fedoseev
26794f6657
Fixed typo in docs/topics/forms/modelforms.txt
2016-05-27 10:31:33 -04:00
Tim Graham
46a38307c2
Removed versionadded/changed annotations for 1.9.
2016-05-20 11:44:29 -04:00
rowanv
a6ef025dfb
Fixed #26124 -- Added missing code formatting to docs headers.
2016-02-01 10:42:05 -05:00
Tim Graham
8e6a08e937
Refs #26142 -- Documented that Formset's extra=0 doesn't prevent creating objects.
2016-01-26 19:12:01 -05:00
Elif T. Kus
bca9faae95
Fixed #26020 -- Normalized header stylings in docs.
2016-01-22 12:12:17 -05:00
bmsleight
8715205c5c
Fixed a typo in a modelforms docs example.
2016-01-09 13:00:59 -05:00
Alexander Sosnovskiy
2a7ce34600
Fixed #14286 -- Added models.BigAutoField.
2015-12-25 20:01:31 -05:00
Tim Graham
4d83b0163e
Fixed #25969 -- Replaced render_to_response() with render() in docs examples.
2015-12-23 09:14:32 -05:00
Bryan Marty
455034d4df
Fixed #21516 -- Updated imports paths for some formset functions/classes.
...
Since refs #21489 , FormSet classes and factories are exposed on the
django.forms package.
2015-10-28 15:44:53 -04:00
Tim Graham
e0837f2cb1
Fixed #25508 -- Modified QuerySet.__repr__() to disambiguate it from a list.
2015-10-06 12:38:34 -04:00
Tim Graham
54848a96dd
Removed versionadded/changed annotations for 1.8.
2015-09-23 19:31:11 -04:00
Flavio Curella
c2e70f0265
Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField
2015-07-27 18:28:13 -04:00
Tim Graham
1418f75304
Fixed #24684 -- Typo in docs/topics/forms/modelforms.txt
2015-04-22 09:31:10 -04:00
Simon Charette
37e23c6060
Fixed #24674 -- Documented the correct NullBooleanField formfield.
...
Thanks to knbk for the report.
2015-04-20 15:18:41 -04:00
Tim Graham
6de3a1e2c3
Fixed #24541 -- Clarified ModelFormSet's handling of initial data.
2015-03-28 08:54:59 -04:00
SaeX
19e41a9799
Fixed typo in docs/topics/forms/modelforms.txt
2015-03-28 07:40:38 -04:00
Dan Fellin
6ff826e12e
Fixed typo in docs/topics/forms/modelforms.txt.
2015-03-11 19:57:28 -04:00
Tim Graham
d0b01ca452
Fixed typo in docs/topics/forms/modelforms.txt.
2015-03-09 20:49:22 -04:00
Psilo Cybin
866e71140f
Fixed #24456 -- Update modelforms.txt table of Form/Model refs
...
Added links to the Form/Model table to the field reference docs to
point to their individual field references
2015-03-08 10:12:53 +01:00
Tim Graham
a40a34a4b2
Fixed #13015 -- Clarified language about model instances attached to forms.
2015-03-02 18:44:23 -05:00
Loic Bistuer
00a889167f
Fixed #24295 -- Allowed ModelForm meta to specify form field classes.
...
Thanks Carl Meyer and Markus Holtermann for the reviews.
2015-02-13 19:13:05 +07:00
Matt Westcott
8d64aae883
Fixed #24255 -- Specifed 'fields' parameter in modelformset_factory / inlineformset_factory examples.
2015-02-02 10:46:33 -05:00
Tim Graham
c79faae761
Removed versionadded/changed notes for 1.7.
2015-02-01 21:02:40 -05:00
wrwrwr
a15aba66f2
Fixed typo in docs/topics/forms/modelforms.txt.
2014-11-27 10:53:06 -05:00
areski
9d6551204e
Removed unnecessary code-block directives.
2014-08-19 16:44:25 -04:00
Marc Tamlyn
9fb0f5dddc
Fixed #22510 -- Harden field removal to only None.
...
Refs #8620 .
If we allow any value to remove form fields then we get name clashes
with method names, media classes etc. There was a backwards
incompatibility introduced meaning ModelForm subclasses with declared
fields called media or clean would lose those fields.
Field removal is now only permitted by using the sentinel value None.
The docs have been slightly reworded to refer to removal of fields
rather than shadowing.
Thanks to gcbirzan for the report and initial patch, and several of the
core team for opinions.
2014-05-24 13:10:50 +01:00
Niclas Åhdén
64ee097b3b
Fixed #22639 -- Added missing imports in docs
...
Added ModelForm and NON_FIELD_ERRORS imports.
2014-05-21 17:11:01 +02:00
Niclas Åhdén
7271f5db78
Fixed #22622 -- Added ugettext_lazy import in docs
2014-05-16 11:20:31 -04:00
Ramiro Morales
cb5dd99bb4
Corrected an import in a model form docs example.
2014-03-30 20:31:07 -03:00
Tim Graham
51c8045145
Removed versionadded/changed annotations for 1.6.
2014-03-24 11:42:56 -04:00
Claude Paroz
3a97f992fb
Fixed #22313 -- Removed 'u' prefixes from documentation
2014-03-22 21:32:20 +01:00
Tim Graham
ee4edb1eda
Made ModelForms raise ImproperlyConfigured if the list of fields is not specified.
...
Also applies to modelform(set)_factory and generic model views.
refs #19733 .
2014-03-22 07:56:48 -04:00
Tim Graham
7f2505ad9e
Fixed doc typos.
2014-02-28 11:44:03 -05:00
Alasdair Nicol
8aa1efff6d
Fixed #21951 -- Updated docs to use __str__ for Python 3
...
Thanks Tim Graham for the report and recommendations
2014-02-13 07:12:40 -05:00
Loic Bistuer
8847a0c601
Fixed #16192 -- Made unique error messages in ModelForm customizable.
...
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-02-08 04:59:09 -05:00
Alasdair Nicol
1fa681ee11
Fixed #21539 -- Added example of modelformset_factory's form argument
2013-12-14 16:35:14 -05:00
Christian Schmitt
744aac6dac
Fixed #21560 -- missing 'slug' field in example code
...
I updated the documentation, that the modelform now includes the 'slug' field.
2013-12-09 22:54:11 +01:00
Loic Bistuer
033b26173b
Improved docs for ModelFormSet.clean().
2013-11-22 19:48:54 -05:00
Tianyi Wang
944a2bb7c1
Improvement on InlineFormSet doc, refs #21006
2013-10-15 14:51:45 +01:00
Tianyi Wang
9bfe66164e
Fixed #21006 -- Added example code for overriding methods on an InlineFormSet.
...
Thanks treysta at gmail.com for the suggestion.
2013-10-15 07:34:29 -04:00