mirror of
https://github.com/django/django.git
synced 2025-03-25 08:40:45 +00:00
Fixed #21515 -- Corrected example of template.Context in documentation.
Thanks to trac user oubiga for the report.
This commit is contained in:
parent
a5b94d9d4e
commit
077af42139
@ -306,10 +306,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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user