#23955: Documentation mentions {{ form.id }} for formsets
---------------------------------+------------------------------------
Reporter: monuszko | Owner: you-n-g
Type: Bug | Status: new
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: formset id form | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
---------------------------------+------------------------------------
Changes (by clairedemars1):
* status: closed => new
* resolution: fixed =>
Comment:
Hello,
{{form.id}} is actually necessary for inline formsets (and probably also
model formsets, but I haven't tested it)
form.id is not displayed, but omitting it gives a MultiValueDict error
and prevents saving when you try to save a formset having more than 1 form
(which is the whole point of formsets)
Sources:
1. personal experience
2. this stack exchange post http://stackoverflow.com/questions/15980475
/multivaluedictkeyerror-in-django-modelformset-factory
Thanks
--
Ticket URL: <https://code.djangoproject.com/ticket/23955#comment:7>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.34709d48044156048afab31f01ed6e6d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.