Opened 4 years ago

Closed 4 years ago

#32102 closed New feature (duplicate)

Add .update(*args, **kwargs) on Django model object

Reported by: Akshay Dadwal Owned by: Akshay Dadwal
Component: Database layer (models, ORM) Version: 3.1
Severity: Normal Keywords: model, save, update
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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.

Change History (2)

comment:1 by Akshay Dadwal, 4 years ago

Owner: changed from nobody to Akshay Dadwal
Status: newassigned

comment:2 by Mariusz Felisiak, 4 years ago

Resolution: duplicate
Status: assignedclosed

Duplicate of #3182.

Note: See TracTickets for help on using tickets.
Back to Top