#12345: incorrect invoking in the example of Multi-table inheritance section
---------------------------+------------------------------------------------
 Reporter:  anonymous      |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Documentation  |     Version:  SVN       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 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")
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12345>
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.


Reply via email to