diff options
Diffstat (limited to 'app/locations')
-rw-r--r-- | app/locations/admin.py | 4 | ||||
-rw-r--r-- | app/locations/urls.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/locations/admin.py b/app/locations/admin.py index a23ef28..0d1c57a 100644 --- a/app/locations/admin.py +++ b/app/locations/admin.py @@ -1,12 +1,12 @@ from django.contrib import admin from django.contrib.gis.admin import OSMGeoAdmin from locations.models import Region,Country,Location,State,Route -from django.contrib import databrowse + from django.contrib.gis.maps.google import GoogleMap from django.conf import settings GMAP = GoogleMap(key=settings.GOOGLE_MAPS_API_KEY) -databrowse.site.register(Region) + class RegionAdmin(OSMGeoAdmin): # Standard Django Admin Options diff --git a/app/locations/urls.py b/app/locations/urls.py index 0a2a462..8bc86aa 100644 --- a/app/locations/urls.py +++ b/app/locations/urls.py @@ -1,5 +1,5 @@ -from django.conf.urls.defaults import * +from django.conf.urls import * urlpatterns = patterns('', (r'data/(?P<id>\d+)/$', 'locations.views.data_json'), |