Ticket #12345: 12345.diff

File 12345.diff, 540 bytes (added by Tim Graham, 15 years ago)

typo

  • docs/topics/db/models.txt

     
    923923``Place`` object to the ``Restaurant`` object by using the lower-case version
    924924of the model name::
    925925
    926     >>> p = Place.objects.filter(name="Bob's Cafe")
     926    >>> p = Place.objects.get(name="Bob's Cafe")
    927927    # If Bob's Cafe is a Restaurant object, this will give the child class:
    928928    >>> p.restaurant
    929929    <Restaurant: ...>
Back to Top