Skip to content

Instantly share code, notes, and snippets.

@tomchristie
Created December 1, 2014 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomchristie/7b552eace0ba5129999c to your computer and use it in GitHub Desktop.
Save tomchristie/7b552eace0ba5129999c to your computer and use it in GitHub Desktop.
currency_serializer = CurrencySerializer(Currency.objects.all(), many=True)
service_serializer = ServiceModuleMinSerializer(ServiceModule.objects.all(), many=True)
return Response({
'currencies': currency_serializer.data,
'services': service_serializer.data
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment