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-modelsMake 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/
Metadata
Release files for django-rest-multiple-models 2.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-rest-multiple-models-2.1.3.tar.gz | 8.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_rest_multiple_models-2.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.4 kB
Release files / django-rest-multiple-models-2.1.3.tar.gz
| Download URL | django-rest-multiple-models-2.1.3.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5503bfd36d37fdd6f2d4535f848ade35cdbc1c54562b13e82bf1f4772d2ef988
|
|
BLAKE2b-256 checksum How to use checksums |
9c7d124eb0cb5375450777fdf241b82b4492c094ca592f8ce40cdb0b29f2f570
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.0 CPython/3.6.4
|
Release files / django_rest_multiple_models-2.1.3-py3-none-any.whl
| Download URL | django_rest_multiple_models-2.1.3-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0fcb16671513e726047881527b01d606ea8d5bda645451f1ddad1fc6a6eb5bdf
|
|
BLAKE2b-256 checksum How to use checksums |
9e84bb2c1650874e99543b5b6c6258dab4edc688a84780760feb8347560a0c0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.0 CPython/3.6.4
|
Security for django-rest-multiple-models 2.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.