Opened 13 years ago
Closed 13 years ago
#17264 closed Uncategorized (needsinfo)
in_bulk should prep the values with get_prep_value of the model's pk field
Reported by: | anonymous | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
currently in_bulk just does filter(pkin=id_list), but id_list should have its values cleaned with the model's pk field's get_prep_value function before filtering.
Change History (2)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
Component: | Uncategorized → Database layer (models, ORM) |
---|---|
Resolution: | → needsinfo |
Status: | new → closed |
More info is needed - it is not clear why such behavior would make sense, when it should be consistent with any other queryset operations
It should be the same as qs.filter(pkin=[...])
Note:
See TracTickets
for help on using tickets.
It would make it easier to review this ticket if you provided an example of why this is needed.