Skip to main content
=============================
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.

Metadata

Release files for rest_framework_custom_viewsets 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rest_framework_custom_viewsets 0.0.4
File Size Uploaded
rest_framework_custom_viewsets-0.0.4.tar.gz 5.7 kB Details

Release files / rest_framework_custom_viewsets-0.0.4.tar.gz

Download URL rest_framework_custom_viewsets-0.0.4.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fae1df7471f310ce696fb5e2023d52e97ee9bcf2ac38b4c1dccc0fed2e6ef054
BLAKE2b-256 checksum
How to use checksums
3345b85690c8f039f61c984d6cff91c119ccae052322f6c2d8969c5a0a4c10e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.4 This release

1 release file

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page