On Sun, Apr 19, 2009 at 1:26 PM, Lee Hinde <[email protected]> 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 = 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?
>

I've tested with several other related tables and in no case can I get
inlines to work. Is there a dependency? I've looked at some of the
various samples available and didn't notice any.

TIA

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to