Permalink
Browse files

Document FLUENT_COMMENTS_EXCLUDE_FIELDS as well

This amends the improvement in 33f91c8, closes #5
  • Loading branch information...
1 parent 33f91c8 commit 710a7fc81ffb897117988df5e015435c33641e5d @vdboor vdboor committed Jan 6, 2013
Showing with 18 additions and 2 deletions.
  1. +12 −1 README.rst
  2. +6 −1 fluent_comments/__init__.py
View
@@ -99,6 +99,17 @@ If your form CSS framework is not supported, you can create a template pack
for it and submit a pull request to the django-crispy-forms_ authors for inclusion.
+Hiding form fields
+~~~~~~~~~~~~~~~~~~
+
+Form fields can be hidden using the following settings::
+
+ FLUENT_COMMENTS_EXCLUDE_FIELDS = ('name', 'email', 'url')
+ COMMENTS_APP = 'fluent_comments'
+
+When `django-threadedcomments`_ in used, the ``title`` field can also be removed.
+
+
Comment moderation
------------------
@@ -152,7 +163,7 @@ which can be enabled with the following settings::
'threadedcomments',
)
- COMMENTS_APP = 'threadedcomments'
+ COMMENTS_APP = 'fluent_comments'
Note however, that some improvements to django-threadedcomments_ are still open
(see `pull request #39 <https://github.com/HonzaKral/django-threadedcomments/pull/39>`_)
@@ -6,12 +6,17 @@
from fluent_comments.forms import FluentCommentForm
+if appsettings.USE_THREADEDCOMMENTS:
+ # Extend the API provided by django-threadedcomments,
+ # in case this app uses more hooks of Django's custom comment app API.
+ from threadedcomments import *
+
+
def get_model():
"""
Return the model to use for commenting.
"""
if appsettings.USE_THREADEDCOMMENTS:
- from threadedcomments.models import ThreadedComment
return ThreadedComment
else:
return Comment

0 comments on commit 710a7fc

Please sign in to comment.