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 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 > ImportError on each of the import statements in the forms.py file > which reference a model in models.py. I'm assuming this is due to > circular imports. > > I can't seem to find any information on importing forms into models. > Is this possible? If so, how? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.