In Django's own comment framework, django-contrib-comments, it has below class
defined:
In
models.py
,class Comment (CommentAbstractModel):
is defined.In
forms.py
,class CommentForm (CommentDetailsForm):
is defined.
Q: since the comment framework is a comment-db-table driven package, why not we use ModelForm
to create forms from models, instead of redundantly create another CommentForm
class ?