On Mon, Oct 5, 2009 at 2:18 PM, Jeremy Dunck <jdu...@gmail.com> wrote: > I have an icky patch for this.
To be clearer, this is a general problem with admindocs-- it has a mapping, DATA_TYPE_MAPPING, and assumes any model field's .get_internal_type() will be in that dictionary. I can think of a couple ways to address this: 1) Have each app which ships custom fields check to see if INSTALLED_APPS includes admindocs, and if so, update DATA_TYPE_MAPPING. 2) Have admindocs check for a new API, Field.get_readable_data_type(), falling back to DATA_TYPE_MAPPING, and finally to the result of .get_internal_type(). The attached patch does the first approach for GIS (applied against django trunk 11125). I think the second approach is better, but doesn't fix your problem immediately. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---
gis-admindocs.diff
Description: Binary data