summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorKaren Tracey <kmtracey@gmail.com>2010-01-18 13:02:07 +0000
committerKaren Tracey <kmtracey@gmail.com>2010-01-18 13:02:07 +0000
commita8e659c54fee749eb4e3496db75ae225ffb9dfb0 (patch)
tree682f3464d4462366cb4256fed98b74849c343a75 /docs/ref
parentd4a2d1f47c578ff3e0bdb2e5c38de5e1f86721e6 (diff)
[1.1.X] Fixed bad indentation in contenttypes code example so that cut and paste from doc will work.
r12253 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12254 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/contenttypes.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/contrib/contenttypes.txt b/docs/ref/contrib/contenttypes.txt
index 8a926afc97..bf0b1e0450 100644
--- a/docs/ref/contrib/contenttypes.txt
+++ b/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