Opened 17 years ago

Closed 13 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 17 years ago.
12086.patch​ (9.6 KB ) - added by Derek Willis 17 years ago.
Added tests and docs to patch

Download all attachments as: .zip

Change History (12)

by Johannes Dollinger, 17 years ago

comment:1 by anonymous, 17 years ago

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

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

Triage Stage: Unreviewed → Accepted

comment:3 by Derek Willis, 17 years ago

milestone: → 1.3
Owner: changed from nobody to Derek Willis
Status: new → assigned

by Derek Willis, 17 years ago

Attachment: 12086.patch​ added

Added tests and docs to patch

comment:4 by Derek Willis, 17 years ago

Needs documentation: unset
Needs tests: unset

comment:5 by Derek Willis, 16 years ago

milestone: 1.3
Severity: → Normal
Type: → Uncategorized

comment:6 by Derek Willis, 16 years ago

Type: Uncategorized → New feature

comment:7 by Julien Phalip, 15 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, 15 years ago

Easy pickings: unset
Owner: changed from Derek Willis to nobody
Status: assigned → new

comment:9 by Aymeric Augustin, 15 years ago

UI/UX: unset

Change UI/UX from NULL to False.

comment:10 by Tim Graham, 13 years ago

Resolution: → duplicate
Status: new → closed

Duplicate of #16891

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