Opened 5 years ago

Closed 18 months 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

Attachments (0)

Change History (5)

comment:1 Changed 4 years ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 3 years ago by baumer1122

  • Severity set to Normal
  • Type set to Cleanup/optimization

comment:3 Changed 2 years ago by aaugustin

  • UI/UX unset

Change UI/UX from NULL to False.

comment:4 Changed 2 years ago by aaugustin

  • Easy pickings unset

Change Easy pickings from NULL to False.

comment:5 Changed 18 months ago by timo

  • Resolution set to needsinfo
  • Status changed from new to 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.