Skip to main content

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

Project description

=============================
Rest Framework Custom ViewSets
=============================

.. image:: https://badge.fury.io/py/rest_framework_custom_viewsets.png
:target: https://badge.fury.io/py/rest_framework_custom_viewsets

.. image:: https://travis-ci.org/Darwesh27/rest_framework_custom_viewsets.png?branch=master
:target: https://travis-ci.org/Darwesh27/rest_framework_custom_viewsets

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

Documentation
-------------

The full documentation is at https://rest_framework_custom_viewsets.readthedocs.org.

Quickstart
----------

Install Rest Framework Custom ViewSets::

pip install rest_framework_custom_viewsets
Add it to the INSTALLED_APPS setting::

INSTALLED_APPS += ('drf_custom_viewsets')

Example::

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
Features
--------

* TODO

Running Tests
--------------

Does the code actually work?

::

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

Credits
---------

Tools used in rendering this package:

* Cookiecutter_
* `cookiecutter-djangopackage`_

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage




History
-------

0.0.1 (2016-05-25)
++++++++++++++++++

* First release on PyPI.

Project details


Download files

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

Files for rest_framework_custom_viewsets, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size rest_framework_custom_viewsets-0.0.4.tar.gz (5.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page