summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/contenttypes.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/ref/contrib/contenttypes.txt b/docs/ref/contrib/contenttypes.txt
index e01001baf7..8e6c7cab82 100644
--- a/docs/ref/contrib/contenttypes.txt
+++ b/docs/ref/contrib/contenttypes.txt
@@ -124,7 +124,8 @@ For example, we could look up the
:class:`~django.contrib.auth.models.User` model::
>>> from django.contrib.contenttypes.models import ContentType
- >>> ContentType.objects.get(app_label="auth", model="user")
+ >>> user_type = ContentType.objects.get(app_label='auth', model='user')
+ >>> user_type
<ContentType: user>
And then use it to query for a particular