Opened 9 years ago

Closed 9 years ago

#12035 closed (duplicate)

admin docs field dictionary miss GIS type informations

Reported by: elpaso66 Owned by: nobody
Component: GIS Version: 1.1
Severity: Keywords: gis admindocs
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


This result in an error while browsing admin docs:

KeyError at /admin/doc/models/risorse.poi/


Request Method: 	GET
Request URL:
Exception Type: 	KeyError
Exception Value: 	


Exception Location: 	/trunk/django/contrib/admindocs/ in get_readable_field_data_type, line 369

This can be easily solved adding

---    (revisione 11602)
+++    (copia locale)
@@ -359,6 +359,14 @@
     'URLField'                  : _('URL'),
     'USStateField'              : _('U.S. state (two uppercase letters)'),
     'XMLField'                  : _('XML text'),
+    'PointField'                : _('GIS Point'),
+    'LineStringField'           : _('GIS Line'),
+    'PolygonField'              : _('GIS Polygon'),
+    'MultiLineString'           : _('GIS Multiple Line'),
+    'MultiLinePoint'            : _('GIS Multiple Point'),
+    'MultiLinePolygon'          : _('GIS Multiple Polygon'),
+    'GeometryCollectionField'   : _('GIS Geometry Collection')

 def get_readable_field_data_type(field):

Change History (1)

comment:1 Changed 9 years ago by jbronn

Resolution: duplicate
Status: newclosed

Duplicate of #7977.

Note: See TracTickets for help on using tickets.
Back to Top