#32210: Django Admin with Inlines not using UUIDField default value
----------------------------------+------------------------------------
Reporter: Joseph Metzinger | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 3.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+------------------------------------
Changes (by Mariusz Felisiak):
* component: contrib.admin => Forms
* stage: Unreviewed => Accepted
Comment:
Thanks for the detailed report. I was able to reproduce this issue. It
looks that formsets' validation mutates the main object, because
`new_object.id` is not empty before the
[https://github.com/django/django/blob/fe9c7ded2996364f853c524b4421274717d89d5f/django/contrib/admin/options.py#L1584
all_valid()] call:
{{{
>>> new_object.id
e13fd82c-c3fc-42dc-ac12-577a4412ba51
>>> all_valid(formsets)
True
>>> new_object.id
None
}}}
Reproduced at ead37dfb580136cc27dbd487a1f1ad90c9235d15.
--
Ticket URL: <https://code.djangoproject.com/ticket/32210#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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.bbda04fa66a0bfe013b8170f959f5e6f%40djangoproject.com.