#36550: AssertionError raised when bulk creation model with composite primary 
key
with auto_now_add field
-------------------------------------+-------------------------------------
     Reporter:  Will-Ruddick         |                    Owner:  (none)
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  5.2
  (models, ORM)                      |
     Severity:  Release blocker      |               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 Jason Hall):

 Attached 36550.patch. The existing regression test for bulk_create() with
 a composite PK containing an auto_now_add field now passes with this
 change. This seems to fix the issue, but I’m not sure if this is the
 preferred approach.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36550#comment:4>
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 visit 
https://groups.google.com/d/msgid/django-updates/01070198a54ccff3-0e693914-7628-43dc-8a48-9c367d6c64c6-000000%40eu-central-1.amazonses.com.

Reply via email to