Re: retrieving models without importing

2009-09-10 Thread Daniel Roseman
On Sep 10, 7:16 am, nbv4 wrote: > I remember reading about away to use django models without importing, > but google fails me. I want to create a ForeignKey relation to another > model, but I can't import it because that will call an endless loop of > imports. > > I know about doing: > > field =

retrieving models without importing

2009-09-09 Thread nbv4
I remember reading about away to use django models without importing, but google fails me. I want to create a ForeignKey relation to another model, but I can't import it because that will call an endless loop of imports. I know about doing: field = models.ForeignKey("app.Model") but theres a bu