Collection of utilities for working with django rest framework (DRF)
Clone or download
miki725 Merge pull request #25 from dealertrack/renderer
fixing DoubleAsStrJsonEncoder for additional types
Latest commit b7ed129 Nov 21, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs adding SwappingSerializerMixin Nov 5, 2018
drf_braces fixing DoubleAsStrJsonEncoder for additional types Nov 21, 2018
tests using importanize ci in make lint May 5, 2017
.coveragerc Added: tests and docstrings for utils Jul 9, 2015
.editorconfig
.gitignore reversing import change and added absolute import in __init__ Apr 27, 2017
.importanizerc initial commit Jun 15, 2015
.travis.yml not using 3.7 is travis since its not out yet Nov 5, 2018
AUTHORS.rst added https://github.com/ClairePhila to contributors Apr 20, 2017
CONTRIBUTING.rst Revert "renamed to django-rest-braces" Jul 1, 2015
HISTORY.rst fixing DoubleAsStrJsonEncoder for additional types Nov 21, 2018
LICENSE.rst initial commit Jun 15, 2015
MANIFEST.in initial commit Jun 15, 2015
Makefile adding SwappingSerializerMixin Nov 5, 2018
README.rst added PYPI version badge Oct 23, 2017
requirements-dev.txt normalizing choices in FormSerializer to support latest DRF Oct 18, 2017
requirements.txt added tests for ISO8601DateTimeField Jun 15, 2015
setup.cfg releasing as universal wheels Oct 23, 2017
setup.py bumped version to 0.1.6 and changed tox to use latest Django/DRF vers Feb 29, 2016
tox.ini

README.rst

Django Rest Framework Braces

https://badge.fury.io/py/django-rest-framework-braces.png https://travis-ci.org/dealertrack/django-rest-framework-braces.svg?branch=master

Collection of utilities for working with DRF. Name inspired by django-braces.

Installing

Easiest way to install django-rest-framework-braces is by using pip:

$ pip install django-rest-framework-braces

Usage

Once installed, you can use any of the supplied utilities by simply importing them. For example:

from drf_braces.mixins import MultipleSerializersViewMixin

class MyViewSet(MultipleSerializersViewMixin, GenericViewSet):
    def create(self, request):
        serializer = self.get_serializer(serializer_class=MySerializer)
        ...

For full list of available utilities, please refer to the documentation.

Testing

To run the tests you need to install testing requirements first:

$ make install

Then to run tests, you can use use Makefile command:

$ make test