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
-----
See the included README.md or check out the documentation on Github:
https://github.com/Axiologue/DjangoRestMultipleModels
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
-----
See the included README.md or check out the documentation on Github:
https://github.com/Axiologue/DjangoRestMultipleModels
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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19c4a2b6ae92af573c173c0f27ce01c3c3fba4823cf860cdac92362226fae152 |
|
MD5 | 7bcb6ef29ccc6b32716484f752d81c1e |
|
BLAKE2b-256 | 021e1f408a1e328c6b6c86e5142bbbc13629d30e6a19b6a7fe980e79ae4eb803 |