Opened 16 years ago
Closed 13 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 , 16 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:2 by , 15 years ago
| Severity: | → Normal |
|---|---|
| Type: | → Cleanup/optimization |
comment:3 by , 14 years ago
| UI/UX: | unset |
|---|
comment:5 by , 13 years ago
| Resolution: | → needsinfo |
|---|---|
| Status: | new → closed |
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.
Change UI/UX from NULL to False.