﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
9450	error import field in forms.py	escopel	nobody	"example code :

from django.forms import forms

TOPIC_CHOISES = (('general', 'Generale'), ('bug', 'Bug'), ('suggestion','Suggestion'))

class ContactForm?(forms.Form):

    topic = forms.ChoiceField?(choices = TOPIC_CHOISES) message = forms.CharField?() sender = forms.EmailField?(required = False)

error:

AttributeError?: 'module' object has no attribute 'ChoiceField?'

in forms.py line 12: from fields import Field, FileField?

not import all fileds but only Field and FileField?

i have changed in :

from fields import * "		closed	Forms	1.0		invalid	forms.py		Unreviewed	0	0	0	0	0	0
