Skip to content

Commit

Permalink
Added missing imports to serializer code snippet. Thanks Howard Glynn…
Browse files Browse the repository at this point in the history
… for reporting.
  • Loading branch information
issackelly committed Mar 6, 2012
1 parent 600a033 commit 4320b0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/serialization.rst
Expand Up @@ -68,9 +68,10 @@ To tweak a format, simply override it's ``to_<format>`` & ``from_<format>``
methods. So adding the server time to all output might look like so::

import time
from django.utils import simplejson
from django.core.serializers import json
from tastypie.serializers import Serializer


class CustomJSONSerializer(Serializer):
def to_json(self, data, options=None):
options = options or {}
Expand Down

0 comments on commit 4320b0e

Please sign in to comment.