[Fixed]-Django restframework upgrading from 0.4.0 to 3.3.1

1👍

There are no simple equivalents. Newest version of DRF is not straightforward compatible with 0.4.0, there was lot of changes and without reading documentation for new DRF you won’t be able to migrate properly.

But answering your question, as far as I know , there is no such thing as ReadModelMixin anymore. There were replaced with more sophisticated solutions and there is no easy answer for replacing it.

PaginatorMixin is also removed, because all default list views have pagination built in and you can swap pagination backeds. See more about pagination in GenericAPIView attributes

Views were replaced by Generic views and Viewsets so here you also can’t just swap classes.

Leave a comment