Re: Add column to generated ManyToMany table and access from admin

2008-05-19 Thread Peter Bailey
Thanks Russ. On May 17, 4:26 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Sat, May 17, 2008 at 2:19 AM, Peter Bailey <[EMAIL PROTECTED]> wrote: > > > However, I would really like to add a column to the join table, > > "order", so I can use the admin of my Page class to add Items and

Re: Add column to generated ManyToMany table and access from admin

2008-05-17 Thread Russell Keith-Magee
On Sat, May 17, 2008 at 2:19 AM, Peter Bailey <[EMAIL PROTECTED]> wrote: > > However, I would really like to add a column to the join table, > "order", so I can use the admin of my Page class to add Items and > define their order on that particular page. Is there a way to do this? At present, thi

Re: Add column to generated ManyToMany table and access from admin

2008-05-16 Thread Peter Bailey
Thanks Richard, I'll give it a go. Cheers On May 16, 2:44 pm, "Richard Dahl" <[EMAIL PROTECTED]> wrote: > I do not think that admin currently supports this, but I could be wrong. but > here are two ways to accomplish it. > > class Item(models.Model): >name = models.CharField(max_length=30)

Re: Add column to generated ManyToMany table and access from admin

2008-05-16 Thread Richard Dahl
I do not think that admin currently supports this, but I could be wrong. but here are two ways to accomplish it. class Item(models.Model): name = models.CharField(max_length=30) class ItemOrder(models.Model): item = models.FK(Item) order = models.int() def __unicode__(self):

Add column to generated ManyToMany table and access from admin

2008-05-16 Thread Peter Bailey
I am pretty new to Django, and am building a web generating app. I am hoping to get a lot of functionality out of the admin. So far that is working great. I do have 2 classes in my models that have a many to many relationship. The code is generated nicely and everything works correctly. The classe