Since version `3.3` it's not longer possible to define page\_size on the view, as it's moved to the paginator class. [related deprecations](http://www.django-rest-framework.org/topics/3.3-announcement/#deprecations)

Our API has different page\_sizes defined for different views and it feels ambiguous to add new paginator subclasses just to overwrite the page\_size attribute. I cannot instantiate the paginator class in the view definition and use the `__init__` method as it's instantiated [here](https://github.com/tomchristie/django-rest-framework/blob/master/rest_framework/generics.py#L163). I could overwrite this and make it a method what returns an instance instantiated with the right parameters, but as its name is not `get_pagination_class`, probably it's not a good idea.

My question is what would be the cleanest way to dynamically create a paginator class with the proper `page_size` attribute set?

I've seen [this](https://stackoverflow.com/questions/35432985/django-rest-framework-override-page-size-in-viewset) question, and I'd like to avoid both of its solutions.