[2.1.x] Fixed #29941 -- Fixed missing variable in docs/ref/contrib/contenttypes.txt.

Regression in b47552b445.

Backport of 0b98e8fdad from master.
This commit is contained in:
Tim Graham 2018-11-09 19:49:06 -05:00
parent 5d0de5852a
commit 8bc244bd57
1 changed files with 2 additions and 1 deletions

View File

@ -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