#9450: error import field in forms.py
----------------------+-----------------------------------------------------
 Reporter:  escopel   |       Owner:  nobody    
   Status:  new       |   Milestone:            
Component:  Forms     |     Version:  1.0       
 Keywords:  forms.py  |       Stage:  Unreviewed
Has_patch:  0         |  
----------------------+-----------------------------------------------------
 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 *

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9450>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to