from django.contrib.gis import admin

from cities.models import *

class CityAdmin(admin.OSMGeoAdmin):
	list_display = ('__unicode__', 'population_2000')
	list_filter = ('pop_range',)
	search_fields = ('name',)

admin.site.register(City, CityAdmin)

from django.contrib.gis import admin

from cities.models import *

class CityAdmin(admin.OSMGeoAdmin):
	list_display = ('__unicode__', 'population_2000')
	list_filter = ('pop_range', 'state')
	search_fields = ('name',)

admin.site.register(City, CityAdmin)

Allow filtering by state code
Allow filtering by state code