| Age | Commit message (Collapse) | Author |
|
Backport of 9c8a2ab81db1fa999862034d9e8e9e1d091a72e5 from master
|
|
Backport of ec74dba2ab3f04fb828c0b926b49f63ec8486dd8 from master
|
|
Backport of 1418f7530455abf3e6f743164ae15ee6b2566a3c from master
|
|
Thanks to knbk for the report.
Backport of 37e23c606031d5b34197e196fb6e6fed0137bb37 from master
|
|
Backport of 6de3a1e2c34ae5bfcdec3ebbf3d682aa578ecae0 from master
|
|
Backport of 19e41a9799079ddae3ba94f95d25577ab4232037 from master
|
|
Backport of 6ff826e12ea99c0eb871716cfedc2c8e199695f3 from master
|
|
Backport of 866e71140f9612e45087b8acafefa2e51ffc4a29 from master
|
|
forms.
Backport of a40a34a4b2d79dbf798df538c26222148d42b17c from master
|
|
Thanks ajenhl Trac user for the report.
Backport of e0080cf57 from master.
|
|
Thanks Brian Jacobel for the report. refs django/djangoproject.com#197
Backport of c7786550c4ed396b8580db58f7da60e850894d19 from master
|
|
Backport of f0c7a6f36005d489e049236922abe0bd3a3eac2c from master
|
|
Backport of a15aba66f2fc650f70a791fb7fa880cf85cb1229 from master
|
|
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
|
|
Backport of 5066fda34d from master.
|
|
Backport of e265112cd1 from master
|
|
Thanks velle for the report.
Backport of 5f3806b861 from master
|
|
it default for admin
Backport of cbdda28208c9c2aea479d5a482ff27bf37869d34 from master.
|
|
Backport of ec85df2fa5 from master
|
|
Backport of 77c0a904cb from master
|
|
Thanks bmispelon, kezabelle, jorgecarleitao, and timgraham for reviews.
Backport of cd20b5d186 from master
|
|
formset.save(commit=False).
Thanks django at patjack.co.uk.
Backport of 2f7a7842ba from master
|
|
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
|
|
Added ModelForm and NON_FIELD_ERRORS imports.
Backport of 64ee097b3b from master
|
|
Backport of 7271f5db78 from master
|
|
Errors detected by Topy (https://github.com/intgr/topy), all changes
verified by hand.
Backport of 11d453bcad from master
|
|
cb5dd99bb4 from master.
|
|
|
|
|
|
|
|
Thanks Tim Graham for the report and recommendations
|
|
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.
|
|
|
|
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.
|
|
|
|
I updated the documentation, that the modelform now includes the 'slug' field.
|
|
|
|
|
|
Thanks treysta at gmail.com for the suggestion.
|
|
Fixed #19617 -- Refactored form metaclasses to support more inheritance scenarios.
|
|
Thanks ebertti at yahoo.com.br for the suggestion.
|
|
shadowing them.
|
|
scenarios.
Thanks apollo13, funkybob and mjtamlyn for the reviews.
|
|
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.
|
|
Thanks gsf for the suggestion.
|
|
Thanks PaulM for the suggestion and Luke Granger-Brown and
Wiktor Kołodziej for the initial patch.
|
|
|
|
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.
|
|
Thanks laureline.guerin@ and Wedg.
|
|
|