List of available mixins:
ListModelMixin: provides a .list() method to the view/viewset
RetrieveModelMixin: provides a .retrieve() method to the view/viewset
CreateModelMixin: provides a .create() method to the view/viewset
UpdateModelMixin: provides a .update() method to the view/viewset
D...
DRF offers the chance to further customize the behavior of the generic views/viewsets by allowing the creation of custom mixins.
How to:
To define a custom mixin we just need to create a class inheriting from object.
Let's assume that we want to define two separate views for a model named MyM...