Ticket #12345: 12345.diff
File 12345.diff, 540 bytes (added by , 15 years ago) |
---|
-
docs/topics/db/models.txt
923 923 ``Place`` object to the ``Restaurant`` object by using the lower-case version 924 924 of the model name:: 925 925 926 >>> p = Place.objects. filter(name="Bob's Cafe")926 >>> p = Place.objects.get(name="Bob's Cafe") 927 927 # If Bob's Cafe is a Restaurant object, this will give the child class: 928 928 >>> p.restaurant 929 929 <Restaurant: ...>