mirror of
https://github.com/django/django.git
synced 2025-02-04 06:30:02 +00:00
Fixed #29941 -- Fixed missing variable in docs/ref/contrib/contenttypes.txt.
Regression in b47552b445547e60cc89213f79e02333cb63f270.
This commit is contained in:
parent
f82be9ebc7
commit
0b98e8fdad
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user