Changes between Initial Version and Version 1 of Ticket #23094
- Timestamp:
- Jul 24, 2014, 12:17:59 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #23094 – Description
initial v1 1 1 On 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: 2 2 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:" 4 4 5 5 and the sample code that follows it reads: 6 7 "b = Book.objects.select_related('person{{{__}}}city').get(id=4)" 8 6 {{{ 7 b = Book.objects.select_related('person__city').get(id=4) 8 }}} 9 9 The arguments passed to select_related do not match. 10 10 11 11 The 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.