Skip to content

Instantly share code, notes, and snippets.

@roessland
Created October 28, 2011 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roessland/1322274 to your computer and use it in GitHub Desktop.
Save roessland/1322274 to your computer and use it in GitHub Desktop.
from custom_comments.forms import SimpleCommentForm
def get_form():
return SimpleCommentForm
from django.contrib.comments.forms import CommentForm
class SimpleCommentForm(CommentForm):
class Meta:
exclude = ('name', 'email', 'url')
INSTALLED_APPS = (.... 'custom_comments' ...)
COMMENTS_APP = 'custom_comments'
{# content is a object #}
{% render_comment_form for content %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment