Corrected signing.dumps()/loads() signatures in docs.
This commit is contained in:
parent
0b655a4bf8
commit
8703680ebe
|
@ -185,12 +185,12 @@ and tuples) if you pass in a tuple, you will get a list from
|
|||
>>> signing.loads(value)
|
||||
['a', 'b', 'c']
|
||||
|
||||
.. function:: dumps(obj, key=None, salt='django.core.signing', compress=False)
|
||||
.. function:: dumps(obj, key=None, salt='django.core.signing', serializer=JSONSerializer, compress=False)
|
||||
|
||||
Returns URL-safe, sha1 signed base64 compressed JSON string. Serialized
|
||||
object is signed using :class:`~TimestampSigner`.
|
||||
|
||||
.. function:: loads(string, key=None, salt='django.core.signing', max_age=None)
|
||||
.. function:: loads(string, key=None, salt='django.core.signing', serializer=JSONSerializer, max_age=None)
|
||||
|
||||
Reverse of ``dumps()``, raises ``BadSignature`` if signature fails.
|
||||
Checks ``max_age`` (in seconds) if given.
|
||||
|
|
Loading…
Reference in New Issue