Opened 15 years ago
Closed 15 years ago
#12345 closed (fixed)
incorrect invoking in the example of Multi-table inheritance section
Reported by: | anonymous | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Keywords: | typo | |
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
Refs http://code.djangoproject.com/browser/django/trunk/docs/topics/db/models.txt?rev=10818#L926 .
p = Place.objects.filter(name="Bob's Cafe") # If Bob's Cafe is a Restaurant object, this will give the child class: >>> p.restaurant <Restaurant: ...>
p is a QuerySet here and p.restaurant has no sense. following maybe better.
p = Place.objects.get(name="Bob's Cafe")
Attachments (1)
Change History (3)
by , 15 years ago
Attachment: | 12345.diff added |
---|
comment:1 by , 15 years ago
Has patch: | set |
---|---|
Keywords: | typo added |
Triage Stage: | Unreviewed → Ready for checkin |
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
typo