1
0
mirror of https://github.com/django/django.git synced 2025-03-14 19:30:46 +00:00

218 Commits

Author SHA1 Message Date
Tim Graham
2dc82a8d27 [1.7.x] Fixed #24684 -- Typo in docs/topics/forms/modelforms.txt
Backport of 1418f7530455abf3e6f743164ae15ee6b2566a3c from master
2015-04-22 09:31:47 -04:00
Simon Charette
a297af972f [1.7.x] Fixed #24674 -- Documented the correct NullBooleanField formfield.
Thanks to knbk for the report.

Backport of 37e23c606031d5b34197e196fb6e6fed0137bb37 from master
2015-04-20 15:20:29 -04:00
Tim Graham
7c7d29adbe [1.7.x] Fixed #24541 -- Clarified ModelFormSet's handling of initial data.
Backport of 6de3a1e2c34ae5bfcdec3ebbf3d682aa578ecae0 from master
2015-03-28 08:59:53 -04:00
SaeX
bd542cbff6 [1.7.x] Fixed typo in docs/topics/forms/modelforms.txt
Backport of 19e41a9799079ddae3ba94f95d25577ab4232037 from master
2015-03-28 07:41:00 -04:00
Dan Fellin
3d55798e98 [1.7.x] Fixed typo in docs/topics/forms/modelforms.txt.
Backport of 6ff826e12ea99c0eb871716cfedc2c8e199695f3 from master
2015-03-11 19:58:18 -04:00
Psilo Cybin
6819cab5d6 [1.7.x] Fixed #24456 -- Added links to topics/forms/modelforms.txt.
Backport of 866e71140f9612e45087b8acafefa2e51ffc4a29 from master
2015-03-09 20:54:01 -04:00
Tim Graham
5ebe921a8e [1.7.x] Fixed #13015 -- Clarified language about model instances attached to forms.
Backport of a40a34a4b2d79dbf798df538c26222148d42b17c from master
2015-03-02 18:45:52 -05:00
Claude Paroz
5e18f6f724 [1.7.x] Fixed #24083 -- Corrected is_bound nature in forms topic docs
Thanks ajenhl Trac user for the report.
Backport of e0080cf57 from master.
2015-01-06 09:00:27 +01:00
Markus Holtermann
a38951948a [1.7.x] Fixed display of lists after website redesign
Thanks Brian Jacobel for the report. refs django/djangoproject.com#197

Backport of c7786550c4ed396b8580db58f7da60e850894d19 from master
2014-12-17 08:24:27 -05:00
Young Yang
58e0d6bdbc [1.7.x] Fixed #23955 -- Corrected formset fields in topic guide.
Backport of f0c7a6f36005d489e049236922abe0bd3a3eac2c from master
2014-12-05 11:33:16 -05:00
wrwrwr
e3ea5d4dad [1.7.x] Fixed typo in docs/topics/forms/modelforms.txt.
Backport of a15aba66f2fc650f70a791fb7fa880cf85cb1229 from master
2014-11-27 10:54:09 -05:00
nmundar
b2534bfa7b [1.7.x] Fixed #23690 - fixed examples of manual rendering of form fields
Documentation for rendering form fields manually is now updated to use fields id_for_label instead of hardcoded values with additional mention of label_tag for alternative generation of complete label tag.

Backport of 48515ee1f7bec437544a0a958332483298f4028b from master
2014-11-16 14:36:08 +01:00
Claude Paroz
b5d6092707 [1.7.x] Replaced input by textarea in forms docs
Backport of 5066fda34d from master.
2014-09-25 15:10:14 +02:00
Tim Graham
2e749f247c [1.7.x] Fixed typo in topics/forms/formsets.txt
Backport of e265112cd1 from master
2014-09-10 11:17:54 -04:00
Octowl
813619405b [1.7.x] Fixed #23307 -- Clarified the way max_num limits the output of formsets.
Thanks velle for the report.

Backport of 5f3806b861 from master
2014-09-08 13:24:38 -04:00
Erik Romijn
307eef20e3 [1.7.x] Fixed #23075 -- Added documentation on novalidate attribute and made it default for admin
Backport of cbdda28208c9c2aea479d5a482ff27bf37869d34 from master.
2014-08-27 09:16:51 +02:00
Matt Deacalion Stevens
31c56f1ee0 [1.7.x] Fixed and enhanced new HTML form docs.
Backport of ec85df2fa5 from master
2014-06-26 13:59:04 -04:00
Ramiro Morales
54a6ab2077 [1.7.x] Fixed typo in revamped forms intro doc.
Backport of 77c0a904cb from master
2014-06-25 12:32:14 -04:00
Daniele Procida
60375eda32 [1.7.x] Fixed #22796 -- Added a more basic explanations of forms.
Thanks bmispelon, kezabelle, jorgecarleitao, and timgraham for reviews.

Backport of cd20b5d186 from master
2014-06-24 14:58:53 -04:00
Tim Graham
868b5e5e95 [1.7.x] Fixed #22747 -- Add backwards compatibility tip for new behavior of formset.save(commit=False).
Thanks django at patjack.co.uk.

Backport of 2f7a7842ba from master
2014-06-04 12:42:23 -04:00
Marc Tamlyn
be733bf672 [1.7.x] 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.

Backport of 9fb0f5dddc4cf7f2d294af1bcde2c359cffd90a5 from master
2014-05-24 13:11:50 +01:00
Niclas Åhdén
aa9a146a69 [1.7.x] Fixed #22639 -- Added missing imports in docs
Added ModelForm and NON_FIELD_ERRORS imports.

Backport of 64ee097b3b from master
2014-05-21 11:20:38 -04:00
Niclas Åhdén
0504d19db0 [1.7.x] Fixed #22622 -- Added ugettext_lazy import in docs
Backport of 7271f5db78 from master
2014-05-16 11:20:58 -04:00
Marti Raudsepp
ba1728dd9b [1.7.x] Various documentation typo/spelling fixes
Errors detected by Topy (https://github.com/intgr/topy), all changes
verified by hand.

Backport of 11d453bcad from master
2014-04-22 20:10:58 -04:00
Ramiro Morales
422f5d9a2c [1.7.x] Corrected an import in a model form docs example.
cb5dd99bb4 from master.
2014-03-30 20:34:29 -03:00
Tim Graham
1f5f015c32 Fixed spelling mistakes in docs. 2014-02-28 21:03:46 -05:00
Tim Graham
7f2505ad9e Fixed doc typos. 2014-02-28 11:44:03 -05:00
Szczepan Cieślik
e816198034 Fixed docs typos. 2014-02-25 10:28:32 -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
Tom Atkins
3b869b09d0 Fixed #21847 -- Clarified where ContactForm was defined 2014-01-23 13:48:09 -05:00
Baptiste Mispelon
79e1d6ebd7 Don't show self in the list of arguments of a method.
This is consistent with Python's official documentation
and it's a sphinx recommendation too[1].

[1] http://sphinx-doc.org/markup/desc.html#dir-method

Refs #21855.
2014-01-22 22:17:32 +01: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
Marc Tamlyn
ce823d3710 Merge pull request #1382 from loic/ticket19617
Fixed #19617 -- Refactored form metaclasses to support more inheritance scenarios.
2013-10-15 04:22:34 -07:00
Sorcha Bowler
018e2c055a Fixed #21223 -- Added form.id_for_label to topic guide.
Thanks ebertti at yahoo.com.br for the suggestion.
2013-10-14 18:41:22 -04:00
Loic Bistuer
b16dd1fe01 Fixed #8620 -- Updated the Form metaclass to support excluding fields by shadowing them. 2013-10-14 22:42:33 +07:00
Loic Bistuer
ac5ec7b8bc Fixed #19617 -- Refactored Form metaclasses to support more inheritance scenarios.
Thanks apollo13, funkybob and mjtamlyn for the reviews.
2013-10-14 21:59:30 +07:00
Loic Bistuer
54cd930baf Clarfied the ModelForm docs with respect to generated vs. declared fields.
The ModelForm docs suggested that fields defined declaratively override
default fields generated from the form Meta.

This is conceptually wrong, especially with inheritance in mind. Meta is
usually defined on the topmost ModelForm subclass, while fields can come
from anywhere in the MRO, especially base classes; therefore we suggested
that something defined in a base class override something from a subclass.

This patch rephrases the docs around the idea that Meta is used to generate
*missing* fields.

Refs #8620, #19617.

Thanks @mjtamlyn and @timgraham for the review.
2013-10-14 10:54:22 -04:00
yokomizor
df27803a55 Fixed #9532 -- Added min_num and validate_min on formsets.
Thanks gsf for the suggestion.
2013-09-19 13:11:49 -04:00
Tim Graham
18ffdb1772 Fixed #17627 -- Renamed util.py files to utils.py
Thanks PaulM for the suggestion and Luke Granger-Brown and
Wiktor Kołodziej for the initial patch.
2013-09-16 12:52:05 -04:00
Phaneendra Chiruvella
2fbf949760 Minor spelling correction in ModelForms docs 2013-08-28 16:05:46 +05:30
Dominic Rodger
c33d1ca1d9 Fixed #20852 - Fixed incorrectly generated left quotes in docs.
Sphinx generates left single quotes for apostrophes after
code markup, when right single quotes are required. The
easiest way to fix this is just by inserting the unicode
character for a right single quote.

Instances of the problem were found by looking for
">‘" in the generated HTML.
2013-08-06 07:13:17 -04:00
Tim Graham
65e03a424e Fixed #10284 -- ModelFormSet.save(commit=False) no longer deletes objects
Thanks laureline.guerin@ and Wedg.
2013-07-23 16:21:23 -04:00
Loic Bistuer
aa41eb9b8b Fixed #20772 -- Fixed minor typo in form media docs. 2013-07-19 15:48:38 +07:00
Loic Bistuer
fba6c2ede7 Reworked docs for ModelForm validation. 2013-07-16 19:20:53 -04:00
James Bennett
c0f03175ce Fixed #19695 -- Retitle "Form Media" to "Form Assets". 2013-07-08 13:59:54 -04:00