1
0
mirror of https://github.com/django/django.git synced 2025-04-19 06:44:36 +00:00

[1.7.x] Fixed #24600 -- Fixed inaccurate example in template Context docs.

Thanks pattypatpat for the report.

Backport of 3acefcefeb5283473ac35d7e842027814d57d574 from master
This commit is contained in:
Tim Graham 2015-04-08 07:27:39 -04:00
parent 080e5dde54
commit 51e5e2efc6

View File

@ -317,7 +317,9 @@ dictionary syntax::
'bar'
>>> del c['foo']
>>> c['foo']
''
Traceback (most recent call last):
...
KeyError: 'foo'
>>> c['newvariable'] = 'hello'
>>> c['newvariable']
'hello'