Opened 15 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)
Change History (12)
by , 15 years ago
Attachment: | 12086.returning_qs_delete.diff added |
---|
comment:1 by , 15 years ago
Has patch: | set |
---|---|
Needs documentation: | set |
Needs tests: | set |
comment:2 by , 15 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:3 by , 15 years ago
milestone: | → 1.3 |
---|---|
Owner: | changed from | to
Status: | new → assigned |
by , 15 years ago
Attachment: | 12086.patch added |
---|
comment:4 by , 15 years ago
Needs documentation: | unset |
---|---|
Needs tests: | unset |
comment:5 by , 14 years ago
milestone: | 1.3 |
---|---|
Severity: | → Normal |
Type: | → Uncategorized |
comment:6 by , 14 years ago
Type: | Uncategorized → New feature |
---|
comment:7 by , 14 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 , 14 years ago
Easy pickings: | unset |
---|---|
Owner: | changed from | to
Status: | assigned → new |
Note:
See TracTickets
for help on using tickets.
Added tests and docs to patch