Opened 12 years ago

Closed 12 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 Anssi Kääriäinen, 12 years ago

It would make it easier to review this ticket if you provided an example of why this is needed.

comment:2 by Preston Holmes, 12 years ago

Component: UncategorizedDatabase layer (models, ORM)
Resolution: needsinfo
Status: newclosed

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.
Back to Top