Opened 15 years ago

Closed 12 years ago

#11756 closed Cleanup/optimization (needsinfo)

Emulating built-in field types

Reported by: marcoslhc Owned by: nobody
Component: Documentation Version: 1.1
Severity: Normal Keywords: built-in field admindocs
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Emulating built-in field types
get_internal_type(self)

The Documentation says not to care too much about using/overriding this function specially when using the db_type method but when activating the admindoc utility in Django the app crashes when trying to show the documentation of a model using the built-in field type.
I consider useful to give the advice of writing the function when using the admindocs utility

Change History (5)

comment:1 by Russell Keith-Magee, 15 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Peter Baumgartner, 14 years ago

Severity: Normal
Type: Cleanup/optimization

comment:3 by Aymeric Augustin, 13 years ago

UI/UX: unset

Change UI/UX from NULL to False.

comment:4 by Aymeric Augustin, 13 years ago

Easy pickings: unset

Change Easy pickings from NULL to False.

comment:5 by Tim Graham, 12 years ago

Resolution: needsinfo
Status: newclosed

I am not sure how to reproduce this. I tried implementing db_type but not get_internal_type on a custom model field, but didn't get an error when viewing the model in admindocs. If someone can provide more details here, please reopen.

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