app/django/contrib/gis/admin/__init__.py
author Mario Ferraro <fadinlight@gmail.com>
Tue, 11 Aug 2009 18:06:57 +0100
changeset 2749 4e2789b8e86d
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
Upgrade jQuery UI to version 1.7. Following our upgrade to JQuery 1.3 we can now upgrade to the most recent version.

# Getting the normal admin routines, classes, and `site` instance.
from django.contrib.admin import autodiscover, site, StackedInline, TabularInline, HORIZONTAL, VERTICAL

# Geographic admin options classes and widgets.
from django.contrib.gis.admin.options import GeoModelAdmin
from django.contrib.gis.admin.widgets import OpenLayersWidget

try:
    from django.contrib.gis.admin.options import OSMGeoAdmin
    HAS_OSM = True
except ImportError:
    HAS_OSM = False