#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 Mariusz Felisiak):
It's exactly the same. It's titled ''"model **instance update()** method
and ..."'' and was rejected by
[https://code.djangoproject.com/ticket/3182#comment:13 Jacob]:
> It's pretty clear to me that `update()` is a nonstarter; it's a single
line of code::
>
> {{{
> def update(self, **kw):
> self.objects.filter(pk=self.pk).update(**kw)
> }}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33834#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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018216f42373-12c4bebc-ac5d-465f-bcea-e3dcb6d405c4-000000%40eu-central-1.amazonses.com.