Hello,
following http://aartemenko.com/texts/optional-email-in-django-
comments/ I try to configure comments in a way that the email address
is not required.
I changed my settings.py
INSTALLED_APPS = (
[...]
'xgm.Blog.comments',
)
COMMENTS_APP = 'xgm.Blog.comments'
xgm/Blog/comments.py (is it ok to use a py-file as app?):
from django import forms
from django.utils.translation import ugettext_lazy as _
from django.contrib.comments.forms import CommentForm
class BlogCommentForm(CommentForm):
email = forms.EmailField("Test!!", required=False)
def get_form():
return BlogCommentForm
but this simply changes nothing (at least nothing I see). The email
field is still required and the label (changed for testing purpose) is
still the same.
I render the comment form in a template with:
{% render_comment_form for object %}
What is wrong about my way?
Thanks,
Florian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---