Do template value tags force django to hit the database when called against a non-context value?
For example:
{{ request.user.username }}
Is the call to show the currently logged in user's username. However, something like {{ request.user.someobject_set.all }}
will dump a FK traversed queryset into the template.
Does the user's someobject
set get dumped into context by default, or do I need to make a context entry with a queryset in the def get_context_data
of my view? And by extension, any other, non-request object that may be found by association?
The below doc shows when the querysets are evaluated in raw python, but doesn't really mention templates and views and their relationship.
https://docs.djangoproject.com/en/1.6/ref/models/querysets/#when-querysets-are-evaluated