Opened 7 years ago

Closed 7 years ago

#12345 closed (fixed)

incorrect invoking in the example of Multi-table inheritance section

Reported by: anonymous Owned by: nobody
Component: Documentation Version: master
Severity: Keywords: typo
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


Refs .

p = Place.objects.filter(name="Bob's Cafe")
# If Bob's Cafe is a Restaurant object, this will give the child class:
<Restaurant: ...>

p is a QuerySet here and has no sense. following maybe better.

p = Place.objects.get(name="Bob's Cafe")

Attachments (1)

12345.diff (540 bytes) - added by Tim Graham 7 years ago.

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by Tim Graham

Attachment: 12345.diff added


comment:1 Changed 7 years ago by Tim Graham

Has patch: set
Keywords: typo added
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedReady for checkin

comment:2 Changed 7 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

(In [12188]) Fixed #12345 -- Fixed bug in db/models.txt.

Note: See TracTickets for help on using tickets.
Back to Top