Multiple model/queryset view (and mixin) for Django Rest Framework
drf-multiple-models provides an easy view (and mixin) for serializing multiple models in a single view. It is built on top of (and meant to be an extension for) Django Rest Framework.
Install the package from pip:
pip install django-rest-multiple-models
Make sure to add ‘drf_multiple_model’ to your INSTALLED_APPS:
INSTALLED_APPS = ( ... 'drf_multiple_model', )
Then simply import the view into any views.py in which you’d want to use it:
from drf_multiple_model.views import MultipleModelAPIView
Documentation is on ReadTheDocs: https://django-rest-multiple-models.readthedocs.io/en/latest/
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for django-rest-multiple-models-2.1.3.tar.gz
Hashes for django_rest_multiple_models-2.1.3-py3-none-any.whl