Re: Error when trying to use inlines in admin

2009-04-21 Thread Lee Hinde
On Tue, Apr 21, 2009 at 10:38 PM, Lee Hinde wrote: > On Sun, Apr 19, 2009 at 1:26 PM, Lee Hinde wrote: >> Hi; >> >> Given this bit in admin.py >> >> class SectionInline(admin.TabularInline): >>    model = Section >> >> class ClassAdmin(admin.ModelAdmin): >>    list_display=('Class_Name','Instruc

Re: Error when trying to use inlines in admin

2009-04-21 Thread Lee Hinde
On Sun, Apr 19, 2009 at 1:26 PM, Lee Hinde wrote: > Hi; > > Given this bit in admin.py > > class SectionInline(admin.TabularInline): >    model = Section > > class ClassAdmin(admin.ModelAdmin): >    list_display=('Class_Name','Instructor') >    search_fields =('Class_Name',) >    save_on_top = Tr

Error when trying to use inlines in admin

2009-04-19 Thread Lee Hinde
Hi; Given this bit in admin.py class SectionInline(admin.TabularInline): model = Section class ClassAdmin(admin.ModelAdmin): list_display=('Class_Name','Instructor') search_fields =('Class_Name',) save_on_top = True inlines = [SectionInline,] class SectionAdmin(admin.ModelA