1
0
mirror of https://github.com/django/django.git synced 2025-04-15 12:54:38 +00:00

[1.5.x] Fixed #21515 -- Corrected example of template.Context in documentation.

Thanks to trac user oubiga for the report.

Backport of 077af42139db84d88f293ab5eadc989a9169dce1 from master.
This commit is contained in:
Baptiste Mispelon 2013-11-28 00:53:10 +01:00
parent e19506d14e
commit 0e98050847

View File

@ -310,10 +310,12 @@ If you ``pop()`` too much, it'll raise
>>> c = Context()
>>> c['foo'] = 'first level'
>>> c.push()
{}
>>> c['foo'] = 'second level'
>>> c['foo']
'second level'
>>> c.pop()
{'foo': 'second level'}
>>> c['foo']
'first level'
>>> c['foo'] = 'overwritten'