views:

17

answers:

0

hello im trying to subclass the CommentForm, and I'm not sure if I'm doing it correctly. I'm making those fields hidden, but they aren't rendering that way.

from django.contrib.comments.forms import CommentForm
from django import forms
from django.utils.translation import ungettext, ugettext_lazy as _

class customCommentForm(CommentForm):
    name          = forms.CharField(widget=forms.HiddenInput)
    email         = forms.EmailField(widget=forms.HiddenInput)
    url           = forms.URLField(widget=forms.HiddenInput)
    comment       = forms.CharField(label=_('Comment'), widget=forms.Textarea,
                                  max_length=3000)