#7977: add geo support to admindocs
----------------------------------------------+-----------------------------
Reporter: [email protected] | Owner: jbronn
Status: assigned | Milestone:
Component: GIS | Version: gis
Resolution: | Keywords:
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 1 |
----------------------------------------------+-----------------------------
Comment (by anonymous):
If there's no "standard function" defined in the app, I'd still like to
see it not throw an exception.
At minimum, DATA_TYPE_MAPPING should be a defaultdict that returns
"Unknown field type" or "Field of type %s" % (field.__class__.__name__) if
the type is not accounted for.
Better, the fields themselves carry information that can be used before
falling back on the list (or after checking the list, or in place of the
list). If checking on the field itself is the last thing done, fields can
use the value on their superclasses by default, and then everything could
fall back to a value on Field (which could be "Field of type %s" %
field.__class__.__name__ or "Unknown field type").
--
Ticket URL: <http://code.djangoproject.com/ticket/7977#comment:8>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---