#33834: Compact way to in-place update of the ORM model instance
-------------------------------------+-------------------------------------
Reporter: Anton Danilchenko | Owner: nobody
Type: New feature | Status: closed
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution: duplicate
Keywords: orm | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Anton Danilchenko):
Hi @Mariusz Felisiak.
I see that you marked it as a duplicate of the very old ticket. But in
that ticket it was discussed a different approach - to use the
`queriet.update()` method to update one or few objects at the same time,
and it was rejected in the end.
But I'm asking about a totally different approach - to use the
`instance.update()` as a shorter form of what I described above. It's a
different approach, but method name is the same in both tickets, but
meaning is totally different.
Please re-evaluate this ticket one more time.
--
Ticket URL: <https://code.djangoproject.com/ticket/33834#comment:2>
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/0107018216d2426e-0af09ac4-de48-40d6-b63e-d69d0ee1791f-000000%40eu-central-1.amazonses.com.