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
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
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
3 matches
Mail list logo