django: newforms.TextField() nicht da?
Verfasst: Montag 25. Juni 2007, 14:33
Ich will eigentlich das machen:
Bekomme aber den Fehler:
http://www.djangoproject.com/documentat ... ield-types
Als work-a-round nutzte ich gerade das:
Weiß jemand warum das so ist?
Code: Alles auswählen
from django import newforms as forms
class MailForm(forms.Form):
...
mail_text = forms.TextField()
...
Eigentlich müsste es ein TextField aber geben, laut Doku:'module' object has no attribute 'TextField'
http://www.djangoproject.com/documentat ... ield-types
Als work-a-round nutzte ich gerade das:
Code: Alles auswählen
mail_text = forms.CharField(widget=forms.Textarea)