Re: ImportError importing forms.py into models.py

2011-02-01 Thread bruno desthuilliers
On 1 fév, 07:34, Ivo Brodien wrote: > if you have circular imports, you can try to put the name of the model. This > at least works for Foreign Keys > http://www.catb.org/jargon/html/V/voodoo-programming.html HTH -- You received this message because you are subscribed to the Google Groups "D

Re: ImportError importing forms.py into models.py

2011-02-01 Thread Daniel Roseman
On Monday, January 31, 2011 11:34:48 PM UTC, Jeffrey Stiles wrote: > > I would really like to make a form instance a model attribute so that > i have access to the form from the template through an object that I > have handy. > > When I try to import import any form into models.py, I get an > I

Re: ImportError importing forms.py into models.py

2011-01-31 Thread Ivo Brodien
if you have circular imports, you can try to put the name of the model. This at least works for Foreign Keys http://docs.djangoproject.com/en/dev/ref/models/fields/#foreignkey On 01.02.2011, at 00:34, Jeffrey Stiles wrote: > I would really like to make a form instance a model attribute so tha