Hi Jerry

this doen't work with ManyToManyField

Exception
<class '...'> has no ForeignKey to <class '...'>

Regards



On Sep 19, 4:48 pm, Jerry Stratton <[EMAIL PROTECTED]> wrote:
> On Sep 19, 6:45 am, Jerry Stratton <[EMAIL PROTECTED]> wrote:
>
> > class SoftwareInline(admin.StackedInline):
> >         model = Software
>
> > class CategoryAdmin(admin.ModelAdmin):
> >         inlines = [SoftwareInline]
>
> Edit: shouldn't post before caffeine. The above might work, but I
> don't know if it does; I used it yesterday with a ForeignKey, not a
> ManyToManyField.
>
> Jerry
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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