Ticket #10221: ticket_10221.diff

File ticket_10221.diff, 911 bytes (added by adamfast, 16 years ago)

Add mappings for geometric fields to the admin documentation generation

  • contrib/admindocs/views.py

     
    339339    'URLField'                  : _('URL'),
    340340    'USStateField'              : _('U.S. state (two uppercase letters)'),
    341341    'XMLField'                  : _('XML text'),
     342    'PointField'                : _('Geographic Point'),
     343    'LineStringField'           : _('Line-string Geometry'),
     344    'PolygonField'              : _('Polygon Geometry'),
     345    'MultiPointField'           : _('Multiple Geographic Points'),
     346    'MultiLineStringField'      : _('Multiple Line-string Geometries'),
     347    'MultiPolygonField'         : _('Multi-polygon Geometry'),
     348    'GeometryCollectionField'   : _('Multiple geometries (potentially of different types)'),
    342349}
    343350
    344351def get_readable_field_data_type(field):
Back to Top