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 And then use it to query for a particular