Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2014
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. class CommentForm(forms.Form):
  2. comment = forms.CharField(widget=forms.Textarea())
  3.  
  4. <label for="id_text">Text:</label>
  5. <textarea id="id_text" rows="10" cols="40" name="text"></textarea>
  6.  
  7. {{ form.as_p }}
  8.  
  9. f = ContactForm(auto_id=False)
  10.  
  11. comment = forms.CharField(label="", help_text="", widget=forms.Textarea())
  12.  
  13. def __init__(self, *args, **kwargs):
  14. self.fields['comment'].label = ''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement