#32406: Allow QuerySet.update() to return fields on supported backends. -------------------------------------+------------------------------------- Reporter: Tom Carrick | Owner: Tom | Carrick Type: New feature | Status: assigned Component: Database layer | Version: master (models, ORM) | 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 Chris Jerdonek): Recently, on issue #32381 about `bulk_update()`, [https://code.djangoproject.com/ticket/32381#comment:1 I suggested] the idea of returning different values as attributes of a single result object (e.g. a `namedtuple`). That was about `bulk_update()` rather than `update()`, but the principle is the same. In this case, the two possible values under consideration could be approximately named something like `number_matched` and `values`. -- Ticket URL: <https://code.djangoproject.com/ticket/32406#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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.7c2c7ebe1cacf014169aa6d9be930125%40djangoproject.com.