mirror of
https://github.com/django/django.git
synced 2025-07-27 07:03:55 +00:00
[1.5.x] Fixed #19683 - Added a missing import in signing example.
Thanks sunsongxp@ for the report.
Backport of 537d44b1b9
from master
This commit is contained in:
parent
c87f89c0db
commit
f6075b0596
1 changed files with 1 additions and 0 deletions
|
@ -60,6 +60,7 @@ You can retrieve the original value using the ``unsign`` method::
|
||||||
If the signature or value have been altered in any way, a
|
If the signature or value have been altered in any way, a
|
||||||
``django.core.signing.BadSignature`` exception will be raised::
|
``django.core.signing.BadSignature`` exception will be raised::
|
||||||
|
|
||||||
|
>>> from django.core import signing
|
||||||
>>> value += 'm'
|
>>> value += 'm'
|
||||||
>>> try:
|
>>> try:
|
||||||
... original = signer.unsign(value)
|
... original = signer.unsign(value)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue