I simply can't get the extra field of inlining to work with the admin
interface.
Whatever I do the admin interface only shows one row of Hour
Here's my admin.py:
from gshop.gs.models import (Store, Brand, District, Category, Hour)
from django.contrib.gis import admin
class MyGeoAdmin(admin.OSMGeoAdmin):
default_lon = 1331500
default_lat = 7904900
default_zoom = 14
class HourInline(admin.TabularInline):
model = Hour
max_num = 7
extra = 3
class MyStoreAdmin(MyGeoAdmin):
inlines = [HourInline]
admin.site.register(Store, MyStoreAdmin)
admin.site.register(District, MyGeoAdmin)
admin.site.register(Brand)
admin.site.register(Category)
admin.site.register(Hour)
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.