With the advent of DRF 3 (unless I am missing something), all classes that inherit from ModelSerializer will not work if I was leaning on the "model" attribute in the class to do the work of setting the query_set and serializer_class for me.
My thought is to replace the line:
model = MyModel
with:
query_set = MyModel.objects.all()
serializer_class = ModelSerializerFactory(MyModel)
The goal here is to remove the need to create the boilerplate serializers for the models and just generate them dynamically. Is that a workable solution, or is there a better way?
Not really sure how to create a ModelSerializer dynamically, since I am new to Python, but it seems to be a solution.