Multiple model/queryset view (and mixin) for Django Rest Framework
Project description
===
Django Rest Multiple Model View
===
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
------------
1. Install the package from pip:
pip install django-rest-multiple-models
2. Make sure to add 'drf_multiple_model' to your INSTALLED_APPS:
INSTALLED_APPS = (
....
'drf_multiple_model',
)
3. 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/
Django Rest Multiple Model View
===
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
------------
1. Install the package from pip:
pip install django-rest-multiple-models
2. Make sure to add 'drf_multiple_model' to your INSTALLED_APPS:
INSTALLED_APPS = (
....
'drf_multiple_model',
)
3. 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-1.7.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30086b4bf6c9a3ccdc41716e49595331cd5917027f9e36f651c7d754c0ad8f33 |
|
MD5 | b0f7a87c9c4d1e7216b127359b5f2ae1 |
|
BLAKE2b-256 | 610d439636813b6f34fabab88981f4d0e0b4c0105c37ed835cb1d125f8e2b2bf |