Opened 11 years ago

Closed 11 years ago

Last modified 8 years ago

#7243 closed (fixed)

Incorrect get_db_prep_lookup documentation (in custom fields)

Reported by: Pavel Anossov Owned by: njharman
Component: Documentation Version: master
Severity: Keywords: get_db_prep_lookup
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Custom model fields documentation states that one can simply return get_db_prep_save result from get_db_prep_lookup. However, one must return a list from get_db_prep_lookup (or call super(CustomField, self).get_db_prep_lookup and return that).

Attachments (1)

ticket_7243.diff (626 bytes) - added by njharman 11 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 11 years ago by Eric Holscher

milestone: 1.0
Triage Stage: UnreviewedAccepted

comment:2 Changed 11 years ago by njharman

Owner: changed from nobody to njharman
Status: newassigned

Changed 11 years ago by njharman

Attachment: ticket_7243.diff added

comment:3 Changed 11 years ago by njharman

Has patch: set
Triage Stage: AcceptedReady for checkin

comment:4 Changed 11 years ago by Malcolm Tredinnick

Another one that needs to wait until after the docs refactor lands (which will be shortly).

comment:5 Changed 11 years ago by Russell Keith-Magee

Resolution: fixed
Status: assignedclosed

(In [8520]) Fixed #7243: Corrected some example code in the custom model fields documentation. Thanks to Norman Harman for the fix.

comment:6 Changed 8 years ago by Jacob

milestone: 1.0

Milestone 1.0 deleted

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