#28682: QuerySet.update() : return the IDs of the matched rows -------------------------------------+------------------------------------- Reporter: Дилян | Owner: nobody Палаузов | Type: | Status: new Uncategorized | Component: Database | Version: 1.11 layer (models, ORM) | Severity: Normal | Keywords: Triage Stage: | Has patch: 0 Unreviewed | Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | -------------------------------------+------------------------------------- By coincidence all backends that can_return_ids_from_bulk_insert, which happens to be only Postgresql, can also return ids from UPDATE:
UPDATE ... SET ... RETURNING id; * update QuerySet.update() to return the PKs of the updated rows * update the documentation of QuerySet.update(), stating the specific return type for PG * possibly rename can_return_ids_from_bulk_insert to can_return_ids or can_return_anything(_from_select_insert_update_delete)? -- Ticket URL: <https://code.djangoproject.com/ticket/28682> 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 post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/057.e55cb4a8ca1b66646351e8540f808e14%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.