#29968: django/db/models/query.py    bulk_update  doesn't check if objs passed 
by
params have duplication
--------------------------------------+------------------------
               Reporter:  lyl-lucas   |          Owner:  nobody
                   Type:  Bug         |         Status:  new
              Component:  Utilities   |        Version:  master
               Severity:  Normal      |       Keywords:
           Triage Stage:  Unreviewed  |      Has patch:  0
    Needs documentation:  0           |    Needs tests:  0
Patch needs improvement:  0           |  Easy pickings:  0
                  UI/UX:  0           |
--------------------------------------+------------------------
 bulk_update method at master branch, the param `objs` is a list. if `objs`
 have the duplicated obj in it, it will only update depend on the lower-
 index obj. if it needs to consider raise Exception when it comes to this
 situation?


 {{{
     def bulk_update(self, objs, fields, batch_size=None):
         """
         Update the given fields in each of the given objects in the
 database.
         """
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29968>
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/052.07868b15f4d52c1fa810421c9ff1e7e8%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to