diff options
author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-01-26 12:57:08 +0100 |
---|---|---|
committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-01-26 13:08:05 +0100 |
commit | f901b4d6c869f4cfb4fc28a861c481f28e46bb3f (patch) | |
tree | da6526f8a137e3cb0200f58d88cc23243127fb1c /django/contrib/comments/views/comments.py | |
parent | 3c47786cb91617b3757e57b6bfeda06ef14e561a (diff) | |
download | django-f901b4d6c869f4cfb4fc28a861c481f28e46bb3f.tar.gz |
Took advantage of the new get_model API. Refs #21702.
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( |