Multiple model/queryset view (and mixin) for Django Rest Framework
Project description
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.
Installation
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
Usage
Documentation is on ReadTheDocs: https://django-rest-multiple-models.readthedocs.io/en/latest/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-rest-multiple-models-2.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef53a188958410ddd3b110abd31b722d59a0fd2f8a26bfb9e4c52c0426d8ad2e |
|
MD5 | db5b88b78024fa753e4e077d9738c32f |
|
BLAKE2b-256 | 267c0b2b98b7e2c5c5f4b09588ba77a38f138aa58c0971bc0f7935adf46b9016 |