diff options
| author | Tim Graham <timograham@gmail.com> | 2018-11-09 19:49:06 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-11-09 19:49:06 -0500 |
| commit | 0b98e8fdad48a33aa34cc84d9bf0c3cd41c56ec6 (patch) | |
| tree | c8ed912696a904d211837a638785d4ee978837a9 /docs/ref | |
| parent | f82be9ebc79e30fef796bbc61fec4b9694cb779f (diff) | |
Fixed #29941 -- Fixed missing variable in docs/ref/contrib/contenttypes.txt.
Regression in b47552b445547e60cc89213f79e02333cb63f270.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/contrib/contenttypes.txt | 3 |
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 |
