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
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:
and make get_form function in init.py file in the root of the app, where template with comments is located:
And see nothing changed... Thanks in advance.