Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Django ModelViewSet extended for per view base extensions like Serializer Classes etc.

Project Description
Rest Framework Custom ViewSets

.. image::

.. image::

Django ModelViewSet extended for per view base extensions like Serializer Classes etc.


The full documentation is at


Install Rest Framework Custom ViewSets::

pip install rest_framework_custom_viewsets
Add it to the INSTALLED_APPS setting::

INSTALLED_APPS += ('drf_custom_viewsets')


from drf_custom_viewsets.viewsets.CustomSerializerViewSet
from myapp.serializers import CustomSerializer1, CustomSerializer2

class MyViewSet(CustomSerializerViewSet):
custom_serializer_class = {
'GET': CustomSerializer1,
'POST': CustomSerializer2,

Then import it in a project::

import drf_custom_viewsets


Running Tests

Does the code actually work?


source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements-test.txt
(myenv) $ python


Tools used in rendering this package:

* Cookiecutter_
* `cookiecutter-djangopackage`_

.. _Cookiecutter:
.. _`cookiecutter-djangopackage`:


0.0.1 (2016-05-25)

* First release on PyPI.
Release History

Release History

This version
History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
rest_framework_custom_viewsets-0.0.4.tar.gz (5.7 kB) Copy SHA256 Checksum SHA256 Source Jun 23, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting