diff --git a/docs/ref/contrib/comments/custom.txt b/docs/ref/contrib/comments/custom.txt
index 064bbca..4d2946f 100644
|
a
|
b
|
the ``my_custom_app`` directory::
|
| 63 | 63 | In the ``models.py`` we'll define a ``CommentWithTitle`` model:: |
| 64 | 64 | |
| 65 | 65 | from django.db import models |
| 66 | | from django.contrib.comments.models import BaseCommentAbstractModel |
| | 66 | from django.contrib.comments.models import Comment |
| 67 | 67 | |
| 68 | | class CommentWithTitle(BaseCommentAbstractModel): |
| | 68 | class CommentWithTitle(Comment): |
| 69 | 69 | title = models.CharField(max_length=300) |
| 70 | | |
| 71 | | All custom comment models must subclass :class:`BaseCommentAbstractModel`. |
| | 70 | |
| | 71 | Ideally, most custom comment models could subclass the :class:`Comment` |
| | 72 | model. |
| | 73 | |
| | 74 | If you want to substantially remove or change the fields available in the |
| | 75 | :class:`Comment` model but wouldn't want to rewrite the templates, you |
| | 76 | could try subclassing from :class:`BaseCommentAbstractModel`. |
| 72 | 77 | |
| 73 | 78 | Next, we'll define a custom comment form in ``forms.py``. This is a little more |
| 74 | 79 | tricky: we have to both create a form and override |
| … |
… |
The :mod:`django.contrib.comments` app defines the following methods; any custom
|
| 177 | 182 | Return the URL for the "approve this comment from moderation" view. |
| 178 | 183 | |
| 179 | 184 | The default implementation returns a reverse-resolved URL pointing |
| 180 | | to the :func:`django.contrib.comments.views.moderation.approve` view. |
| 181 | | No newline at end of file |
| | 185 | to the :func:`django.contrib.comments.views.moderation.approve` view. |