Skip to content

Instantly share code, notes, and snippets.

View georgedorn's full-sized avatar
💭
mostly moved to gitlab

Sam Thompson georgedorn

💭
mostly moved to gitlab
View GitHub Profile
import json
from collections import OrderedDict
from tastypie.serializers import Serializer
from tastypie import fields
from tastypie.resources import Resource
from django.core.serializers.json import DjangoJSONEncoder
class OrderedSerializer(Serializer):
def to_json(self, data, options=None):
options = options or {}