Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (11 sloc) 363 Bytes
from django.contrib import admin
from django.contrib.gis.admin import OSMGeoAdmin
from rideshare import models as db
class GeoAdmin(OSMGeoAdmin):
default_lat = 39.95 # philadelphia
default_lon = -75.16
default_zoom = 2
map_width = 750
map_height = 500
admin.site.register(db.RideRequest, GeoAdmin)
admin.site.register(db.Ride, GeoAdmin)