mirror of https://github.com/django/django.git
[1.8.x] Fixed #24600 -- Fixed inaccurate example in template Context docs.
Thanks pattypatpat for the report.
Backport of 3acefcefeb
from master
This commit is contained in:
parent
e2294b453c
commit
9e87017a38
|
@ -410,7 +410,9 @@ dictionary syntax::
|
||||||
'bar'
|
'bar'
|
||||||
>>> del c['foo']
|
>>> del c['foo']
|
||||||
>>> c['foo']
|
>>> c['foo']
|
||||||
''
|
Traceback (most recent call last):
|
||||||
|
...
|
||||||
|
KeyError: 'foo'
|
||||||
>>> c['newvariable'] = 'hello'
|
>>> c['newvariable'] = 'hello'
|
||||||
>>> c['newvariable']
|
>>> c['newvariable']
|
||||||
'hello'
|
'hello'
|
||||||
|
|
Loading…
Reference in New Issue