Skip to content

Commit

Permalink
Fixed #6600 -- Corrected typos in contenttype documentation.
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7111 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
freakboy3742 committed Feb 14, 2008
1 parent 7d71198 commit 5078010
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/contenttypes.txt
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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 object it's related to, and you can also assign to that field or use it when
creating a ``TaggedItem``:: creating a ``TaggedItem``::


>>> from django.contrib.models.auth import User >>> from django.contrib.auth.models import User
>>> guido = User.objects.get(username='Guido') >>> guido = User.objects.get(username='Guido')
>>> t = TaggedItem(content_object=guido, tag='bdfl') >>> t = TaggedItem(content_object=guido, tag='bdfl')
>>> t.save() >>> t.save()
Expand All @@ -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 ``Bookmark`` instances will each have a ``tags`` attribute, which can
be used to retrieve their associated ``TaggedItems``:: be used to retrieve their associated ``TaggedItems``::


>>> b = Bookmark('http://www.djangoproject.com/') >>> b = Bookmark(url='http://www.djangoproject.com/')
>>> b.save() >>> b.save()
>>> t1 = TaggedItem(content_object=b, tag='django') >>> t1 = TaggedItem(content_object=b, tag='django')
>>> t1.save() >>> t1.save()
Expand Down

0 comments on commit 5078010

Please sign in to comment.