Re: ManyToManyField edited on admin by both sides?

2008-10-04 Thread Markos Gogoulos
Solved, for reference check http://blog.abiss.gr/mgogoulos/entry/many_to_many_relationships_and On Sep 19, 5:39 pm, Markos Gogoulos <[EMAIL PROTECTED]> wrote: > Hi Jerry > > this doen't work with ManyToManyField > > Exception > has no ForeignKey to > > Regards > > On Sep 19, 4:48 pm, Jerry S

Re: ManyToManyField edited on admin by both sides?

2008-09-19 Thread Markos Gogoulos
Hi Jerry this doen't work with ManyToManyField Exception has no ForeignKey to 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

Re: ManyToManyField edited on admin by both sides?

2008-09-19 Thread Jerry Stratton
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

Re: ManyToManyField edited on admin by both sides?

2008-09-19 Thread Jerry Stratton
On Sep 19, 5:09 am, Markos Gogoulos <[EMAIL PROTECTED]> wrote: > on the admin panel I am trying to display both models of an > ManyToManyField relationship. Say for example there are these two > models: > > class Software(models.Model): >     name = models.CharField(max_length=50) >     categories

ManyToManyField edited on admin by both sides?

2008-09-19 Thread Markos Gogoulos
Hi there, on the admin panel I am trying to display both models of an ManyToManyField relationship. Say for example there are these two models: class Software(models.Model): name = models.CharField(max_length=50) categories = models.ManyToManyField(Category) class Category(models.Model)