diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-08-04 17:38:18 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-08-04 17:41:20 +0200 |
| commit | 49f9bb271dfeecca431398363e6683780ebcc70a (patch) | |
| tree | aec27e7ec2edf2a4fdc35b5de15f26034464f4ad /docs/ref | |
| parent | 1d280026c3797a23075739f28bb238972afad317 (diff) | |
[1.4.x] Fixed #18713 -- Fixed custom comment app name in comments docs
Thanks Pratyush for the report.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/contrib/comments/custom.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/ref/contrib/comments/custom.txt b/docs/ref/contrib/comments/custom.txt index 5007ddff69..0ef37a9a0b 100644 --- a/docs/ref/contrib/comments/custom.txt +++ b/docs/ref/contrib/comments/custom.txt @@ -51,9 +51,9 @@ To make this kind of customization, we'll need to do three things: custom :setting:`COMMENTS_APP`. So, carrying on the example above, we're dealing with a typical app structure in -the ``my_custom_app`` directory:: +the ``my_comment_app`` directory:: - my_custom_app/ + my_comment_app/ __init__.py models.py forms.py @@ -98,11 +98,11 @@ Django provides a couple of "helper" classes to make writing certain types of custom comment forms easier; see :mod:`django.contrib.comments.forms` for more. -Finally, we'll define a couple of methods in ``my_custom_app/__init__.py`` to +Finally, we'll define a couple of methods in ``my_comment_app/__init__.py`` to point Django at these classes we've created:: - from my_comments_app.models import CommentWithTitle - from my_comments_app.forms import CommentFormWithTitle + from my_comment_app.models import CommentWithTitle + from my_comment_app.forms import CommentFormWithTitle def get_model(): return CommentWithTitle |
