#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):

 Maybe doing {{{Foo.objects.update(x="newx", returning=True)}}} and
 returning a QuerySet would work better. I found only a single project with
 {{{returning}}} model field in github
 
https://github.com/annalee/alienplanit/blob/b54722d683a5e8eba03f4467a367bcf24339bb32/submissions/models.py#L35

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32406#comment:17>
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/0107018acc14a4b5-ae58267d-916d-4bbb-9aa5-4f935e671816-000000%40eu-central-1.amazonses.com.

Reply via email to