On 12/31/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
        f = forms.form_for_model(Project)
        return render_to_response('crm/addproject.html', {'theform':
f})

form_for_model() returns a Form class, not a Form instance. You'll
have to instantiate the form class before sending it to the template,
like so:

   ProjectForm = forms.form_for_model(Project)
   f = ProjectForm()
   return render_to_response('crm/addproject.html', {'theform': f})

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to