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
Built Distributions
Close
Hashes for django-rest-multiple-models-2.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 748052e3ea4f6d91430571833608105509b7eb09db32f6bbba20c31b26204fd2 |
|
MD5 | 06cd2c1ac5f0b89a2f2076286cd085d8 |
|
BLAKE2b-256 | 8f06e857a28768231f8c15de8ecd0cbbd11b4c200896956dc2036ac843d05158 |
Close
Hashes for django_rest_multiple_models-2.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df89a1182823fcdcd4daf5e3ee98e59852559ebe14009fa94fec63584e6bed75 |
|
MD5 | ab238d3f69b1654532db6d815bed54b3 |
|
BLAKE2b-256 | 724682c93931fd58e3849439a6b86116f5636bd4eaa79ea7d3cb3031fbf47011 |
Close
Hashes for django_rest_multiple_models-2.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c2b7928d25ca22979f94db4a73d08cb818de244718d15b43d62d5b49de408be |
|
MD5 | cd4fcd2e8f90f788dd57ef4c880dcafd |
|
BLAKE2b-256 | d15859eefbd386b8308cb6c8e2a781dc8ea3b85472461e26c697426215f4766d |