#13263 closed (fixed)
code example typo in the documentation
Reported by: | RicherPots | Owned by: | Gabriel Hurley |
---|---|---|---|
Component: | Documentation | Version: | 1.1 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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, "authorname" should be replaced with "authorsname".
Attachments (1)
Change History (5)
by , 15 years ago
Attachment: | 13263_docs_patch.diff added |
---|
comment:1 by , 15 years ago
Has patch: | set |
---|---|
milestone: | → 1.2 |
Owner: | changed from | to
Status: | new → assigned |
Triage Stage: | Unreviewed → Accepted |
Trivial patch. I even ran the example code before and after just to *really* be sure it was right ;-)
comment:2 by , 15 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
comment:3 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
corrects name of m2m field in query doc examples