Re: Help on M2MField

2005-09-01 Thread Leo
Maybe I use a poor example to show the question here. Let me use the real question to explain what troubles me: Here are an object need localization information, for example it's name is different from one country to another country. In this case i use a seperate table to store translations( incl

Re: Help on M2MField

2005-09-01 Thread Matthew Marshall
On Thursday 01 September 2005 06:13 am, Leo wrote: > class People(Model): > first_name = ManyToManyField (Name) > last_name = ManyToManyField (Name) I might be misunderstanding the situation, but why are you using ManyToManyField instead of ForeignKey? (Sorry I don't know the answer to

Help on M2MField

2005-08-31 Thread Leo
I create two m2mfields which reference to the same class, such as this: class Name(Model): name = CharField (maxlength=50) def __repr__(self): return self.name class People(Model): first_name = ManyToManyField (Name) last_name = ManyToManyField (Name) def __repr__(se