diff options
| author | Karen Tracey <kmtracey@gmail.com> | 2010-01-18 13:00:22 +0000 |
|---|---|---|
| committer | Karen Tracey <kmtracey@gmail.com> | 2010-01-18 13:00:22 +0000 |
| commit | 34e420184c7a4860852a0a481083335923b533d1 (patch) | |
| tree | c8662161d8b852916b432b9cf067d761ca62555b /docs | |
| parent | 235bf7f1f7bbc85024560addb384f213fb6d0950 (diff) | |
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
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/contenttypes.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/contrib/contenttypes.txt b/docs/ref/contrib/contenttypes.txt index bab8fa1033..3085bf3ee9 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 |
