#10221 closed (duplicate)
Admin Documentation Generator throws KeyError on models containing Point fields
Reported by: | adamfast | Owned by: | nobody |
---|---|---|---|
Component: | GIS | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
django.contrib.admindocs.views in get_readable_field_data_type, line 345 throws a KeyError.
This is because there is no entry in DATA_TYPE_MAPPING for any of the geo fields. I created a patch (that may need better verbose names) and will upload it after saving to get an ID for the name.
This may belong under component django.contrib.admin, but since it's specific to contrib.gis I will assign there for now.
Attachments (1)
Change History (4)
by , 16 years ago
Attachment: | ticket_10221.diff added |
---|
comment:1 by , 16 years ago
Has patch: | set |
---|
comment:2 by , 16 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Didn't search hard enough. Dupe of http://code.djangoproject.com/ticket/7977
Note:
See TracTickets
for help on using tickets.
Add mappings for geometric fields to the admin documentation generation