Browse files

[1.1.X] Fixed bad indentation in contenttypes code example so that cu…

…t and paste from doc will work.

r12253 from trunk.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
kmtracey committed Jan 18, 2010
1 parent d4a2d1f commit a8e659c54fee749eb4e3496db75ae225ffb9dfb0
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/ref/contrib/contenttypes.txt
@@ -223,8 +223,8 @@ A simple example is a tagging system, which might look like this::
object_id = models.PositiveIntegerField()
content_object = generic.GenericForeignKey('content_type', 'object_id')
- def __unicode__(self):
- return self.tag
+ def __unicode__(self):
+ return self.tag
A normal :class:`~django.db.models.fields.related.ForeignKey` can only "point
to" one other model, which means that if the ``TaggedItem`` model used a

0 comments on commit a8e659c

Please sign in to comment.