On Apr 17, 1:14 am, JoJo wrote:
> Hi all, i have an error here im not sure what it means can anyone help
> me
>
> here is my models.py file##
> class AddStuffForm(forms.Form):
>
> title = forms.CharField(max_length=100)
> body = forms.CharField(widget = forms.Textarea())
>
>
I'm not completely sure, but it looks as though your variable 'body':
body = forms.CharField(widget = forms.Textarea())
should be:
body = forms.CharField(widget=forms.Textarea)
with next area not as a function.
http://docs.djangoproject.com/en/dev/ref/forms/widgets/#django.forms.Form.widget
On
Hi all, i have an error here im not sure what it means can anyone help
me
here is my models.py file##
class AddStuffForm(forms.Form):
title = forms.CharField(max_length=100)
body = forms.CharField(widget = forms.Textarea())
def save(self):
new_gossip = Gossip
3 matches
Mail list logo