Changes between Initial Version and Version 1 of Ticket #23094


Ignore:
Timestamp:
Jul 24, 2014, 12:17:59 PM (10 years ago)
Author:
Tim Graham
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23094 – Description

    initial v1  
    11On the QuerySet API documentation page, under the section for select_related (https://docs.djangoproject.com/en/dev/ref/models/querysets/#django.db.models.query.QuerySet.select_related), in the section about following foreign keys, the documentation reads:
    22
    3 "...then a call to Book.objects.select_related('person', 'person{{{__}}}city').get(id=4) will cache the related Person and the related City:"
     3"...then a call to `Book.objects.select_related('person', 'person__city').get(id=4)` will cache the related Person and the related City:"
    44
    55and the sample code that follows it reads:
    6 
    7 "b = Book.objects.select_related('person{{{__}}}city').get(id=4)"
    8 
     6{{{
     7b = Book.objects.select_related('person__city').get(id=4)
     8}}}
    99The arguments passed to select_related do not match.
    1010
    1111The error is present in both the Dev docs and the 1.7 docs.
    12 
    13 Pardon the odd formatting on the double underscores. I tried to escape them in about eight different ways, and this was the best I could do.
Back to Top