Skip to content

Commit

Permalink
Replaced old DateTimeAwareJSONEncoder with DjangoJSONEncoder in docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brightcells authored and timgraham committed Aug 19, 2016
1 parent f8c338e commit d301c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/topics/http/sessions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ including ``datetime`` and ``Decimal`` in JSON backed sessions, you will need
to write a custom serializer (or convert such values to a JSON serializable
object before storing them in ``request.session``). While serializing these
values is fairly straightforward
(``django.core.serializers.json.DateTimeAwareJSONEncoder`` may be helpful),
(:class:`~django.core.serializers.json.DjangoJSONEncoder` may be helpful),
writing a decoder that can reliably get back the same thing that you put in is
more fragile. For example, you run the risk of returning a ``datetime`` that
was actually a string that just happened to be in the same format chosen for
Expand Down

0 comments on commit d301c61

Please sign in to comment.