Created
October 28, 2011 13:33
-
-
Save roessland/1322274 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from custom_comments.forms import SimpleCommentForm | |
def get_form(): | |
return SimpleCommentForm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.contrib.comments.forms import CommentForm | |
class SimpleCommentForm(CommentForm): | |
class Meta: | |
exclude = ('name', 'email', 'url') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSTALLED_APPS = (.... 'custom_comments' ...) | |
COMMENTS_APP = 'custom_comments' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{# 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