mirror of
https://github.com/django/django.git
synced 2025-06-06 12:09:11 +00:00
[1.7.x] Documented Context.get() method.
Backport of 4d9414098bd98aacd241827a01f6ad2dff71f113 from master
This commit is contained in:
parent
36fb3b39de
commit
eaf86858d4
@ -322,6 +322,11 @@ dictionary syntax::
|
|||||||
>>> c['newvariable']
|
>>> c['newvariable']
|
||||||
'hello'
|
'hello'
|
||||||
|
|
||||||
|
.. method:: Context.get(key, otherwise=None)
|
||||||
|
|
||||||
|
Returns the value for ``key`` if ``key`` is in the context, else returns
|
||||||
|
``otherwise``.
|
||||||
|
|
||||||
.. method:: Context.pop()
|
.. method:: Context.pop()
|
||||||
.. method:: Context.push()
|
.. method:: Context.push()
|
||||||
.. exception:: ContextPopException
|
.. exception:: ContextPopException
|
||||||
|
Loading…
x
Reference in New Issue
Block a user