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
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
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)
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):
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
5 matches
Mail list logo