#13263: code example typo in the documentation
---------------------------+------------------------------------------------
Reporter: RicherPots | Owner: nobody
Status: new | Milestone:
Component: Documentation | Version: 1.1
Keywords: | Stage: Unreviewed
Has_patch: 0 |
---------------------------+------------------------------------------------
On the documentation page
http://docs.djangoproject.com/en/dev/topics/db/queries/, the code example:
{{{Blog.objects.filter(entry__author__name='Lennon')}}}
is inconsistent with the Entry model:
{{{
class Entry(models.Model):
#...
authors = models.ManyToManyField(Author)
}}}
There are two other code snippets like the one above. For all of them,
"author__name" should be replaced with "authors__name".
--
Ticket URL: <http://code.djangoproject.com/ticket/13263>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.