#24541: save_new_objects in ModelFromsets do not handle intitial data
-------------------------------+--------------------------------------
Reporter: codingjoe | Owner: nobody
Type: Uncategorized | Status: new
Component: Forms | Version: master
Severity: Normal | Resolution:
Keywords: modelformset | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by codingjoe):
* status: closed => new
* resolution: invalid =>
Comment:
That does not work for `ModelFormSets` as the pop `initial` to
`initial_extra` and only except existing objects using the Queryset.
There currently is no way to create objects using a `ModelFormSet` with
initial data.
I get your point, about compatibility, but you should decide if this odd
behavior is a bug or a feature. Personally it feels like a bug. Especially
as Model and regular form sets handle initial data so differently. There
is no consistent behavior nor any documentation about this.
--
Ticket URL: <https://code.djangoproject.com/ticket/24541#comment:2>
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/067.42a11f6429c35c17c2f50955c92005ea%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.