honzakral / django-threadedcomments

django-threadedcomments is a simple yet flexible threaded commenting system for Django.
BSD 3-Clause "New" or "Revised" License
623 stars 164 forks source link

Custom form #87

Closed rodolphopivetta closed 6 years ago

rodolphopivetta commented 7 years ago

I just want to add or remove some fields from default threadedcomments form.

What's the best way to override the form without have to modify templatetags?

vdboor commented 6 years ago

The django comments app provides this infrastructure. You can assign a different COMMENTS_APP, which provides the get_model() and get_form() logic (that then reuses the threadedcomments/__init__.py logic where possible.

An alternative is using https://github.com/django-fluent/django-fluent-comments which has this feature built-in. This app is build on top of the django comments / threaded comments so consider it icing the cake ;-)