mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
[1.5.x] Tweaked a reST construct in template API docs. Refs #20104.
This commit is contained in:
parent
239b89950c
commit
a6ff705aea
@ -221,13 +221,13 @@ straight lookups. Here are some things to keep in mind:
|
|||||||
self.database_record.delete()
|
self.database_record.delete()
|
||||||
sensitive_function.alters_data = True
|
sensitive_function.alters_data = True
|
||||||
|
|
||||||
* .. versionadded:: 1.4
|
.. versionadded:: 1.4
|
||||||
Occasionally you may want to turn off this feature for other reasons,
|
Occasionally you may want to turn off this feature for other reasons,
|
||||||
and tell the template system to leave a variable un-called no matter
|
and tell the template system to leave a variable un-called no matter
|
||||||
what. To do so, set a ``do_not_call_in_templates`` attribute on the
|
what. To do so, set a ``do_not_call_in_templates`` attribute on the
|
||||||
callable with the value ``True``. The template system then will act as
|
callable with the value ``True``. The template system then will act as
|
||||||
if your variable is not callable (allowing you to access attributes of
|
if your variable is not callable (allowing you to access attributes of
|
||||||
the callable, for example).
|
the callable, for example).
|
||||||
|
|
||||||
.. _invalid-template-variables:
|
.. _invalid-template-variables:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user