Define custom form:
class NoEmailCommentForm(CommentForm):
def __init__(self, *args, **kwargs):
super(NoEmailCommentForm, self).__init__(*args, **kwargs)
self.fields['email'].required = False
Then put
def get_form():
return NoEmailCommentForm
in your comment customization app's __init__.py
Then set COMMENTS_APP = 'your_comments_app'
And then just don't render email and url fields in templates.
On 4 окт, 01:49, Guillermo wrote:
> Hi,
>
> Specifically, I don't want to require users to enter their email
> addresses or an url.
>
> Regards,
>
> Guillermo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---