Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CommentForm(forms.Form):
- comment = forms.CharField(widget=forms.Textarea())
- <label for="id_text">Text:</label>
- <textarea id="id_text" rows="10" cols="40" name="text"></textarea>
- {{ form.as_p }}
- f = ContactForm(auto_id=False)
- comment = forms.CharField(label="", help_text="", widget=forms.Textarea())
- def __init__(self, *args, **kwargs):
- self.fields['comment'].label = ''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement