Hi, I'm getting this error while calling .as_table() on a form. This is how I define the form and the view function:
from django import newforms as forms TOPIC_CHOICES = ( ('general', 'General enquiry'), ('bug', 'Bug report'), ('suggestion' 'Suggestion'), ) class ContactForm(forms.Form): topic = forms.ChoiceField(choices = TOPIC_CHOICES) message = forms.CharField() sender = forms.EmailField(required = False) #view function def contact(request): form = ContactForm() return render_to_response('books/contact.html', {'form': form}) What am I doing wrong? O:-) --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---