#32406: Allow QuerySet.update() to return fields on supported backends.
-------------------------------------+-------------------------------------
     Reporter:  Tom Carrick          |                    Owner:  Aivars
                                     |  Kalvāns
         Type:  New feature          |                   Status:  assigned
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Aivars Kalvāns):

 Just because the {{{update}}} is returning the number of rows updated. I
 can do the same with {{{Foo.objects.update(x="newx", returning=True)}}}
 assuming no model will have a {{{returning}}} field. Whatever fits best, I
 just want to be able to do {{{returning}}} without executing a raw SQL.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32406#comment:14>
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018acbcf23ed-c690936f-5d5e-42d0-9ca4-d426abd698c3-000000%40eu-central-1.amazonses.com.

Reply via email to