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 Distribution
Close
Hashes for django-rest-multiple-models-2.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54c9c2e92a56c751772acbf1dd3cfc95933645d27fe2a18366eb58ac4c47517e |
|
MD5 | b4f428fe2b3fdc041ef0c1bec5c380df |
|
BLAKE2b-256 | aeff517af87feadac4863034d519a14ac22f4ff16b83f54ff8292c4865a9cde5 |
Close
Hashes for django_rest_multiple_models-2.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e98b87b382a05bc34622411d3f5b68ed3ab958d78cf70e09218d1d022652b06 |
|
MD5 | 0d607eccfd75441302809293b3a8c693 |
|
BLAKE2b-256 | eb65991f3cc5302f8f732ce9b2a5201403fb0057fde3047cf0b1d845e9a52d38 |