admin foo

This commit is contained in:
Sanj 2012-09-19 20:46:47 +05:30
parent cf668c32a9
commit a20c9bd00b

View File

@ -19,15 +19,15 @@ class TextInline(admin.TabularInline):
model = Text
extra = 4
class FlyoverAdmin(admin.OSMGeoAdmin):
class FlyoverAdmin(admin.ModelAdmin):
fieldsets = (
('Flyover Data', {'fields': (('point','name', 'txt',)), 'classes': ('show','extrapretty')}),
)
map_template = 'gis/admin/google.html'
default_lon = 72.855211097628413
default_lat = 19.415775291486027
default_zoom = 4
extra_js = ['http://openstreetmap.org/openlayers/OpenStreetMap.js', 'http://maps.google.com/maps?file=api&v=2&key=%s' % settings.GOOGLE_MAPS_API_KEY]
# map_template = 'gis/admin/google.html'
# default_lon = 72.855211097628413
# default_lat = 19.415775291486027
# default_zoom = 4
# extra_js = ['http://openstreetmap.org/openlayers/OpenStreetMap.js', 'http://maps.google.com/maps?file=api&v=2&key=%s' % settings.GOOGLE_MAPS_API_KEY]
inlines = [ImageInline, VideoInline, AudioInline, TextInline]
admin.site.register(Flyover, FlyoverAdmin)