#23114: Template Variables Docs Incorrect/Unclear
-------------------------------+------------------------------------
Reporter: tom.dalton@… | Owner: gmunumel
Type: Bug | Status: assigned
Component: Documentation | Version: 1.6
Severity: Normal | Resolution:
Keywords: template | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+------------------------------------
Comment (by anonymous):
Even that's not quite accurate, since it tries the initial lookup (dict
then attribute then list index). Once it's got that value, it then calls
it if possible.
So maybe the docs should say something like:
Value lookup is done in the following order:
* dict-key
* attribute
* list-index
If the value is callable, it is called, and the value becomes the result
of that call.
--
Ticket URL: <https://code.djangoproject.com/ticket/23114#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/080.b4ad0fdc0a1cae07fd7726abb4ee95f9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.