Re: self unique symmetrical relation

2009-05-08 Thread Malcolm Tredinnick
On Thu, 2009-05-07 at 07:12 -0700, Aldo wrote: > Hello, > > I have a problem for a quite simple model. > I would like to model a person marriage relation. > > example : > > class Person(models.Model): > name=models.CharField(max_length=100) > married_to=models.OneToOneField('sel

self unique symmetrical relation

2009-05-07 Thread Aldo
Hello, I have a problem for a quite simple model. I would like to model a person marriage relation. example : class Person(models.Model): name=models.CharField(max_length=100) married_to=models.OneToOneField('self',symmetrical=True) # symmetrical not allowed married_to=m