Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Start integrating olwidget into the admin

  • Loading branch information...
commit 794853bc6b6f13dd05b71e46ac26598cd3159026 1 parent eef4a49
Dan Fairs authored
Showing with 5 additions and 2 deletions.
  1. +4 −2 djangopeople/admin.py
  2. +1 −0  requirements.txt
View
6 djangopeople/admin.py
@@ -1,8 +1,10 @@
-from django.contrib import admin
+from django.contrib.gis import admin
from djangopeople.models import Country, CountrySite, Region, DjangoPerson, PortfolioSite
+from olwidget.admin import GeoModelAdmin
-class CountryAdmin(admin.ModelAdmin):
+class CountryAdmin(GeoModelAdmin):
list_display = ('name',)
+ map_fields = ['polygon']
class CountrySiteAdmin(admin.ModelAdmin):
pass
View
1  requirements.txt
@@ -1,6 +1,7 @@
Django==1.3
South==0.7.3
django-nose==0.1.3
+django-olwidget==0.4
django-tagging==0.3.1
nose==1.0.0
geopy==0.94.1
Please sign in to comment.
Something went wrong with that request. Please try again.