diff options
Diffstat (limited to 'django/contrib/comments/views/comments.py')
-rw-r--r-- | django/contrib/comments/views/comments.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/comments/views/comments.py b/django/contrib/comments/views/comments.py index 165f2b6574..c124634088 100644 --- a/django/contrib/comments/views/comments.py +++ b/django/contrib/comments/views/comments.py @@ -49,7 +49,7 @@ def post_comment(request, next=None, using=None): if ctype is None or object_pk is None: return CommentPostBadRequest("Missing content_type or object_pk field.") try: - model = apps.get_model(*ctype.split(".", 1)) + model = apps.get_model(ctype) target = model._default_manager.using(using).get(pk=object_pk) except TypeError: return CommentPostBadRequest( |