Opened 7 years ago

Closed 4 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


Emulating built-in field types

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 Changed 7 years ago by Russell Keith-Magee

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

comment:2 Changed 6 years ago by Peter Baumgartner

Severity: Normal
Type: Cleanup/optimization

comment:3 Changed 5 years ago by Aymeric Augustin

UI/UX: unset

Change UI/UX from NULL to False.

comment:4 Changed 5 years ago by Aymeric Augustin

Easy pickings: unset

Change Easy pickings from NULL to False.

comment:5 Changed 4 years ago by Tim Graham

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