diff --git a/django/contrib/comments/__init__.py b/django/contrib/comments/__init__.py
index 55b8bac..1f74d90 100644
|
a
|
b
|
def get_comment_app_name():
|
| 39 | 39 | return getattr(settings, 'COMMENTS_APP', 'django.contrib.comments') |
| 40 | 40 | |
| 41 | 41 | def get_model(): |
| 42 | | from django.contrib.comments.models import Comment |
| 43 | | return Comment |
| | 42 | if get_comment_app_name() == __name__: |
| | 43 | from django.contrib.comments.models import Comment |
| | 44 | return Comment |
| | 45 | return get_comment_app().get_model() |
| 44 | 46 | |
| 45 | 47 | def get_form(): |
| 46 | | from django.contrib.comments.forms import CommentForm |
| 47 | | return CommentForm |
| | 48 | if get_comment_app_name() == __name__: |
| | 49 | from django.contrib.comments.forms import CommentForm |
| | 50 | return CommentForm |
| | 51 | return get_comment_app().get_form() |
| 48 | 52 | |
| 49 | 53 | def get_form_target(): |
| 50 | | return urlresolvers.reverse("django.contrib.comments.views.comments.post_comment") |
| | 54 | if get_comment_app_name() == __name__: |
| | 55 | return urlresolvers.reverse("django.contrib.comments.views.comments.post_comment") |
| | 56 | return get_comment_app().get_form_target() |
| 51 | 57 | |
| 52 | 58 | def get_flag_url(comment): |
| 53 | 59 | """ |