# Path: textplusstuff/views/renderers.py
# class TextPlusStuffBrowsableAPIRenderer(BrowsableAPIRenderer):
#     template = 'textplusstuff/api.html'
# 
#     def get_context(self, data, accepted_media_type, renderer_context):
#         """
#         Returns the context used to render.
#         """
#         context = super(TextPlusStuffBrowsableAPIRenderer, self).get_context(
#             data, accepted_media_type, renderer_context
#         )
#         rest_framework_version = context['version']
#         context.update({
#             'rest_framework_version': rest_framework_version,
#             'version': '.'.join(version_as_string)
#         })
#         return context


from collections import OrderedDict
from django.utils.functional import Promise
from rest_framework.renderers import JSONRenderer
from rest_framework.response import Response
from rest_framework.utils import formatting
from .renderers import TextPlusStuffBrowsableAPIRenderer
        from ..registry import get_modelstuff_renditions
from __future__ import unicode_literals





class TextPlusStuffAPIViewMixIn(object):
    renderer_classes = (
        JSONRenderer,

# Path: textplusstuff/views/renderers.py
# class TextPlusStuffBrowsableAPIRenderer(BrowsableAPIRenderer):
#     template = 'textplusstuff/api.html'
# 
#     def get_context(self, data, accepted_media_type, renderer_context):
#         """
#         Returns the context used to render.
#         """
#         context = super(TextPlusStuffBrowsableAPIRenderer, self).get_context(
#             data, accepted_media_type, renderer_context
#         )
#         rest_framework_version = context['version']
#         context.update({
#             'rest_framework_version': rest_framework_version,
#             'version': '.'.join(version_as_string)
#         })
#         return context


# Path: textplusstuff/views/mixins.py
from collections import OrderedDict
from django.utils.functional import Promise
from rest_framework.renderers import JSONRenderer
from rest_framework.response import Response
from rest_framework.utils import formatting
from .renderers import TextPlusStuffBrowsableAPIRenderer
        from ..registry import get_modelstuff_renditions

from __future__ import unicode_literals





class TextPlusStuffAPIViewMixIn(object):
    renderer_classes = (
        JSONRenderer,

        TextPlusStuffBrowsableAPIRenderer