# Path: textplusstuff/registry.py
# class Rendition(object):
# class Stuff(object):
# class ModelStuff(Stuff):
#         class ListSerializer(ModelSerializer):
#             class Meta:
# class StuffRegistry(object):
#         class ListStuffGroups(TextPlusStuffAPIViewMixIn, APIView):
#     def __init__(self, short_name, verbose_name, description,
#                  path_to_template, rendition_type='block'):
#     def get_context_data(self, **context):
#     def render_as_html(self, context):
#     def __init__(self, model):
#     def _verify_rendition(self, rendition):
#     def _verify_rendition_list_uniqueness(self, rendition_list):
#     def _verify_and_build_initial_rendition_dict(self):
#     def register_non_core_rendition(self, rendition):
#     def get_list_serializer(self):
#     def list_view(self):
#     def detail_view(self):
#     def get_url_name_key(self):
#     def get_urls(self):
#     def __init__(self, name='stuff_registry'):
#     def verify_stuff_cls(self, stuff_cls):
#     def verify_groups(self, groups, stuff_cls):
#     def add_modelstuff(self, model, stuff_cls, groups=[]):
#     def add_noncore_modelstuff_rendition(self, model, rendition):
#     def remove_modelstuff(self, model):
#     def index(self):
#             def prepare_stuffgroups(self):
#             def get_generated_stuffgroups(self):
#             def get(self, request, format=None):
#     def get_urls(self):
#     def urls(self):
# def get_modelstuff_renditions(model_instance):
# 
# Path: tests/models.py
# class RegisteredModel(models.Model):
#     """
#     A simple model used to test textplusstuff.registry.StuffRegistry
#     """
#     title = models.CharField(
#         max_length=90
#     )
# 
#     class Meta:
#         verbose_name = _('Registered Model')
#         verbose_name_plural = _('Registered Models')
# 
#     def __unicode__(self):
#         return "registeredmodel:{}".format(self.pk)
# 
# Path: tests/serializers.py
# class RegisteredModelSerializer(ExtraContextSerializerMixIn,
#                                 serializers.ModelSerializer):
# 
#     class Meta:
#         model = RegisteredModel
#         fields = ('title',)


from textplusstuff import registry
from .models import RegisteredModel
from .serializers import RegisteredModelSerializer
from __future__ import unicode_literals




class RegisteredModelStuff(registry.ModelStuff):
    # The queryset used to retrieve instances of TestModel
    # within the front-end interface. For instance, you could
    # exclude 'unpublished' instances or anything else you can
    # query the ORM against
    queryset = RegisteredModel.objects.all()

    # What humans see when they see this stuff
    # verbose_name = 'Registration Test Model'
    # verbose_name_plural = 'Registration Test Models'
    description = 'Add an Registration Test Model'

    # The serializer we just defined, this is what provides the context/JSON
    # payload for this Stuff

# Path: textplusstuff/registry.py
# class Rendition(object):
# class Stuff(object):
# class ModelStuff(Stuff):
#         class ListSerializer(ModelSerializer):
#             class Meta:
# class StuffRegistry(object):
#         class ListStuffGroups(TextPlusStuffAPIViewMixIn, APIView):
#     def __init__(self, short_name, verbose_name, description,
#                  path_to_template, rendition_type='block'):
#     def get_context_data(self, **context):
#     def render_as_html(self, context):
#     def __init__(self, model):
#     def _verify_rendition(self, rendition):
#     def _verify_rendition_list_uniqueness(self, rendition_list):
#     def _verify_and_build_initial_rendition_dict(self):
#     def register_non_core_rendition(self, rendition):
#     def get_list_serializer(self):
#     def list_view(self):
#     def detail_view(self):
#     def get_url_name_key(self):
#     def get_urls(self):
#     def __init__(self, name='stuff_registry'):
#     def verify_stuff_cls(self, stuff_cls):
#     def verify_groups(self, groups, stuff_cls):
#     def add_modelstuff(self, model, stuff_cls, groups=[]):
#     def add_noncore_modelstuff_rendition(self, model, rendition):
#     def remove_modelstuff(self, model):
#     def index(self):
#             def prepare_stuffgroups(self):
#             def get_generated_stuffgroups(self):
#             def get(self, request, format=None):
#     def get_urls(self):
#     def urls(self):
# def get_modelstuff_renditions(model_instance):
# 
# Path: tests/models.py
# class RegisteredModel(models.Model):
#     """
#     A simple model used to test textplusstuff.registry.StuffRegistry
#     """
#     title = models.CharField(
#         max_length=90
#     )
# 
#     class Meta:
#         verbose_name = _('Registered Model')
#         verbose_name_plural = _('Registered Models')
# 
#     def __unicode__(self):
#         return "registeredmodel:{}".format(self.pk)
# 
# Path: tests/serializers.py
# class RegisteredModelSerializer(ExtraContextSerializerMixIn,
#                                 serializers.ModelSerializer):
# 
#     class Meta:
#         model = RegisteredModel
#         fields = ('title',)


# Path: tests/stuff.py
from textplusstuff import registry
from .models import RegisteredModel
from .serializers import RegisteredModelSerializer

from __future__ import unicode_literals




class RegisteredModelStuff(registry.ModelStuff):
    # The queryset used to retrieve instances of TestModel
    # within the front-end interface. For instance, you could
    # exclude 'unpublished' instances or anything else you can
    # query the ORM against
    queryset = RegisteredModel.objects.all()

    # What humans see when they see this stuff
    # verbose_name = 'Registration Test Model'
    # verbose_name_plural = 'Registration Test Models'
    description = 'Add an Registration Test Model'

    # The serializer we just defined, this is what provides the context/JSON
    # payload for this Stuff

    serializer_class = RegisteredModelSerializer