#1565 closed enhancement (fixed)
[patch] [magic-removal] in_bulk() throws an exception on an empty list of ids
| Reported by: | Antti Kaihola | Owned by: | Adrian Holovaty |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | |
| Severity: | minor | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
It would be more useful if in_bulk returned simply an empty dictionary if the given id list is empty.
Attachments (2)
Change History (3)
by , 20 years ago
| Attachment: | in_bulk-empty-list.diff added |
|---|
comment:1 by , 20 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
patched in_bulk() returns {} if id_list is [] or ()