Browse files

Added missing imports to serializer code snippet. Thanks Howard Glynn…

… for reporting.
  • Loading branch information...
issackelly committed Mar 6, 2012
1 parent 600a033 commit 4320b0ef7a3a038a5ff49b1fd200de2eca4ebbc6
Showing with 2 additions and 1 deletion.
  1. +2 −1 docs/serialization.rst
@@ -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 {}

0 comments on commit 4320b0e

Please sign in to comment.