Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #6600 -- Corrected typos in contenttype documentation.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7111 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 5078010a31ea32a6fd2e9c4fce5354b8f838b163 1 parent 7d71198
@freakboy3742 freakboy3742 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/contenttypes.txt
View
4 docs/contenttypes.txt
@@ -215,7 +215,7 @@ each ``TaggedItem`` will have a ``content_object`` field that returns the
object it's related to, and you can also assign to that field or use it when
creating a ``TaggedItem``::
- >>> from django.contrib.models.auth import User
+ >>> from django.contrib.auth.models import User
>>> guido = User.objects.get(username='Guido')
>>> t = TaggedItem(content_object=guido, tag='bdfl')
>>> t.save()
@@ -235,7 +235,7 @@ a "reverse" generic relationship to enable an additional API. For example::
``Bookmark`` instances will each have a ``tags`` attribute, which can
be used to retrieve their associated ``TaggedItems``::
- >>> b = Bookmark('http://www.djangoproject.com/')
+ >>> b = Bookmark(url='http://www.djangoproject.com/')
>>> b.save()
>>> t1 = TaggedItem(content_object=b, tag='django')
>>> t1.save()

0 comments on commit 5078010

Please sign in to comment.
Something went wrong with that request. Please try again.