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.ModelAdmin):
list_display=('Season','aClass')
search_fields =('Season',)
raw_id_fields = ('aClass',)
save_on_top = True
When I open the detail (or change) page in admin, I get:
'SectionFormFormSet' object has no attribute '_initial_form_count'
The Exception Location is :
/Library/Python/2.5/site-packages/django/forms/models.py in
_construct_form, line 357
I believe the relations are correctly established because I can
comment out the inlines and the record loads normally with the lookup
for 'aClass' in place.
I'm using the latest build (revision 10600)
Any suggestions?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---