Kaydet (Commit) 0b98e8fd authored tarafından Tim Graham's avatar Tim Graham

Fixed #29941 -- Fixed missing variable in docs/ref/contrib/contenttypes.txt.

Regression in b47552b4.
üst f82be9eb
...@@ -124,7 +124,8 @@ For example, we could look up the ...@@ -124,7 +124,8 @@ For example, we could look up the
:class:`~django.contrib.auth.models.User` model:: :class:`~django.contrib.auth.models.User` model::
>>> from django.contrib.contenttypes.models import ContentType >>> 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> <ContentType: user>
And then use it to query for a particular And then use it to query for a particular
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment