mirror of
https://github.com/django/django.git
synced 2025-03-01 12:24:31 +00:00
[1.8.x] Fixed typos in docs/ref/templates/api.txt
Backport of c612786cf15e2e1d00162ed4e335e83b75e6c978 from master
This commit is contained in:
parent
e560bc2a3e
commit
42f9bbd9d9
@ -457,8 +457,8 @@ is called.
|
||||
>>> c = Context()
|
||||
>>> c['foo'] = 'first level'
|
||||
>>> with c.push():
|
||||
>>> c['foo'] = 'second level'
|
||||
>>> c['foo']
|
||||
... c['foo'] = 'second level'
|
||||
... c['foo']
|
||||
'second level'
|
||||
>>> c['foo']
|
||||
'first level'
|
||||
@ -469,12 +469,12 @@ used to build the new context level.
|
||||
>>> c = Context()
|
||||
>>> c['foo'] = 'first level'
|
||||
>>> with c.push(foo='second level'):
|
||||
>>> c['foo']
|
||||
... c['foo']
|
||||
'second level'
|
||||
>>> c['foo']
|
||||
'first level'
|
||||
|
||||
.. method:: update(other_dict)
|
||||
.. method:: Context.update(other_dict)
|
||||
|
||||
In addition to ``push()`` and ``pop()``, the ``Context``
|
||||
object also defines an ``update()`` method. This works like ``push()``
|
||||
|
Loading…
x
Reference in New Issue
Block a user