Re: how to get the one-to-one relation class's name of a class

2010-02-28 Thread Daniel Roseman
On Feb 28, 7:07 am, sinanjj wrote: > hello everyone. > I am doing a GIS related project, with django. > There is a question that how to get the one-to-one relation class's > name of a class? > for example: > class Thing(models.Model): >         lat = models.FloatField(

how to get the one-to-one relation class's name of a class

2010-02-28 Thread sinanjj
hello everyone. I am doing a GIS related project, with django. There is a question that how to get the one-to-one relation class's name of a class? for example: class Thing(models.Model): lat = models.FloatField(default=0.0) lng = models.FloatField(default=0.0) class Street