#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
----------------------------------+------------------------------------

Comment (by kamilturek):

 Looks like it's not directly related to formsets' validation but
 instantiating formset's forms.


 {{{
 (Pdb) new_object.id
 UUID('06048350-3ad9-45f5-bca3-d08d795d7231')
 (Pdb) formsets[0].forms
 [<SubThingForm bound=True, valid=Unknown, fields=(name;thing;id;DELETE)>]
 (Pdb) new_object.id
 (Pdb)
 }}}

 {{{
 (Pdb) new_object.id
 UUID('652863a7-ccc8-4a18-9390-6fb77aa4bafa')
 (Pdb) formsets[0]._construct_form(0)
 <SubThingForm bound=True, valid=Unknown, fields=(name;thing;id;DELETE)>
 (Pdb) new_object.id
 (Pdb)
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32210#comment:3>
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.cde659736b71b14088ee443c5525fad6%40djangoproject.com.

Reply via email to