Fixed bad indentation in contenttypes code example so that cut and paste from doc will work.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12253 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Karen Tracey 2010-01-18 13:00:22 +00:00
parent 235bf7f1f7
commit 34e420184c
1 changed files with 2 additions and 2 deletions

View File

@ -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