Skip to main content

Django Rest Framework extension for implement by action serializers, permissions & /etc

Project description

Django Rest Framework Extended ViewSet

https://pypi.python.org/pypi/drf_extended_viewset https://travis-ci.com/ivlevdenis/drf_extended_viewset https://drf-extended-viewset.readthedocs.io/en/latest/?badge=latest https://pyup.io/repos/github/ivlevdenis/drf_extended_viewset/

Django Rest Framework extension for implement by action serializers, permissions & /etc

Features

class MyModelViewSet(ExtendedModelViewSet):
    serializer_class_map = {
        'list': ListMyModelSerializer,
        'retrieve': RetrieveMyModelSerializer,
        'update': UpdateMyModelSerializer,
        ...
    }
    permission_classes_map = {
        'list': AllowAny,
        'retrieve': IsAuthenticated,
        'update': (IsOwner | IsAdminUser),
        ...
    }

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

Cookiecutter audreyr/cookiecutter-pypackage

Project details


Release history Release notifications

Download files

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

Files for drf-extended-viewset, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size drf_extended_viewset-0.1.0-py2.py3-none-any.whl (4.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size drf_extended_viewset-0.1.0.tar.gz (8.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page