django/django-contrib-comments

Unable to customize textarea for comment

painkkiller opened this issue · 2 comments

I am using Django 3.0.3 with django-contrib-comments. Everything is working ok, except one thing - I am unable customize form according to documentation.

So I created form:

class ProjectCommentForm(CommentForm):
    comment = forms.CharField(label="", help_text="", max_length=3000, widget=forms.Textarea(attrs={'class': 'my-custom-class' }))

and make get_form function in init.py file in the root of the app, where template with comments is located:

def get_form():
    from .forms import ProjectCommentForm
    return ProjectCommentForm

And see nothing changed... Thanks in advance.

Sorry, miss this line in settings.py file

COMMENTS_APP = 'my_comment_app'

Everything now fine