Opened 14 years ago

Closed 11 years ago

#12086 closed New feature (duplicate)

Make QuerySet.delete() return the number of deleted objects

Reported by: Johannes Dollinger Owned by: nobody
Component: Database layer (models, ORM) Version: 1.1
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no

Description

This should be only be the number of objects deleted from the primary table (because other results may be hard to get with #7539).

Attachments (2)

12086.returning_qs_delete.diff (1006 bytes ) - added by Johannes Dollinger 14 years ago.
12086.patch (9.6 KB ) - added by Derek Willis 14 years ago.
Added tests and docs to patch

Download all attachments as: .zip

Change History (12)

by Johannes Dollinger, 14 years ago

comment:1 by anonymous, 14 years ago

Has patch: set
Needs documentation: set
Needs tests: set

comment:2 by Russell Keith-Magee, 14 years ago

Triage Stage: UnreviewedAccepted

comment:3 by Derek Willis, 14 years ago

milestone: 1.3
Owner: changed from nobody to Derek Willis
Status: newassigned

by Derek Willis, 14 years ago

Attachment: 12086.patch added

Added tests and docs to patch

comment:4 by Derek Willis, 14 years ago

Needs documentation: unset
Needs tests: unset

comment:5 by Derek Willis, 13 years ago

milestone: 1.3
Severity: Normal
Type: Uncategorized

comment:6 by Derek Willis, 13 years ago

Type: UncategorizedNew feature

comment:7 by Julien Phalip, 13 years ago

Patch needs improvement: set

The tests would need to be rewritten using unittests since this is now Django's preferred way.

comment:8 by Derek Willis, 13 years ago

Easy pickings: unset
Owner: changed from Derek Willis to nobody
Status: assignednew

comment:9 by Aymeric Augustin, 12 years ago

UI/UX: unset

Change UI/UX from NULL to False.

comment:10 by Tim Graham, 11 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #16891

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