Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

nickfrez / unb-djutils   python

Repository URL to install this package:

Version: 0.0.24 

/ unb_djutils / rest / render.py

"""
Common renderers.

"""

from rest_framework import renderers


def to_json(request, qs, serializer, many=False):
  s = serializer(qs, context={'request': request}, many=many)
  return renderers.JSONRenderer().render(s.data)