[Django] #32102: Add .update(*args, **kwargs) on Django model object

12 views
Skip to first unread message

Django

unread,
Oct 10, 2020, 7:47:55 AM10/10/20
to django-...@googlegroups.com
#32102: Add .update(*args, **kwargs) on Django model object
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
dadwalakshay |
Type: New | Status: new
feature |
Component: Database | Version: 3.1
layer (models, ORM) |
Severity: Normal | Keywords: model, save, update
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Allow queryset_obj.update(*args, **kwargs) like behavior on a single
Django model instance.

To update a single Django model object, one have to assign values to each
Model class attribute and invoke .save(*args, **kwargs). Adding an
.update(*args, **kwargs) method in Django model class.

--
Ticket URL: <https://code.djangoproject.com/ticket/32102>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Oct 10, 2020, 7:48:45 AM10/10/20
to django-...@googlegroups.com
#32102: Add .update(*args, **kwargs) on Django model object
-------------------------------------+-------------------------------------
Reporter: Akshay Dadwal | Owner: Akshay
| Dadwal
Type: New feature | Status: assigned
Component: Database layer | Version: 3.1
(models, ORM) |
Severity: Normal | Resolution:

Keywords: model, save, update | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Akshay Dadwal):

* owner: nobody => Akshay Dadwal
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/32102#comment:1>

Django

unread,
Oct 10, 2020, 9:59:38 AM10/10/20
to django-...@googlegroups.com
#32102: Add .update(*args, **kwargs) on Django model object
-------------------------------------+-------------------------------------
Reporter: Akshay Dadwal | Owner: Akshay
| Dadwal
Type: New feature | Status: closed

Component: Database layer | Version: 3.1
(models, ORM) |
Severity: Normal | Resolution: duplicate

Keywords: model, save, update | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):

* status: assigned => closed
* resolution: => duplicate


Comment:

Duplicate of #3182.

--
Ticket URL: <https://code.djangoproject.com/ticket/32102#comment:2>

Reply all
Reply to author
Forward
0 new messages