Changes between Version 1 and Version 2 of Ticket #29081
- Timestamp:
- Jan 29, 2018, 9:19:31 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29081
- Property Has patch set
- Property Triage Stage Unreviewed → Accepted
- Property Summary select_related and hitting the database → Clarify QuerySet.select_related() example regarding "hitting the database"
-
Ticket #29081 – Description
v1 v2 1 https://docs.djangoproject.com/en/2.0/ref/models/querysets/#select-related says:1 [[Image()]]https://docs.djangoproject.com/en/2.0/ref/models/querysets/#select-related says: 2 2 3 3 > … then a call to Book.objects.select_related('author_ _hometown').get(id=4) will cache the related Person and the related City: