mirror of
https://github.com/django/django.git
synced 2025-03-31 11:37:06 +00:00
[1.8.x] Documented Context.get() method.
Backport of 4d9414098bd98aacd241827a01f6ad2dff71f113 from master
This commit is contained in:
parent
09062e9509
commit
ff71d6b8de
@ -415,6 +415,11 @@ dictionary syntax::
|
||||
>>> c['newvariable']
|
||||
'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.push()
|
||||
.. exception:: ContextPopException
|
||||
|
Loading…
x
Reference in New Issue
Block a user