Opened 8 years ago

Closed 8 years ago

Last modified 5 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: UI/UX:


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 8 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 8 years ago by Eric Holscher

milestone: 1.0
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedAccepted

comment:2 Changed 8 years ago by njharman

Owner: changed from nobody to njharman
Status: newassigned

Changed 8 years ago by njharman

Attachment: ticket_7243.diff added

comment:3 Changed 8 years ago by njharman

Has patch: set
Triage Stage: AcceptedReady for checkin

comment:4 Changed 8 years ago by Malcolm Tredinnick

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

comment:5 Changed 8 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 5 years ago by Jacob

milestone: 1.0

Milestone 1.0 deleted

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