Skip to main content

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/

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-rest-multiple-models-2.1.3.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_rest_multiple_models-2.1.3-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file django-rest-multiple-models-2.1.3.tar.gz.

File metadata

  • Download URL: django-rest-multiple-models-2.1.3.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for django-rest-multiple-models-2.1.3.tar.gz
Algorithm Hash digest
SHA256 5503bfd36d37fdd6f2d4535f848ade35cdbc1c54562b13e82bf1f4772d2ef988
MD5 098ad855923e503dddbad77ee03e8bd2
BLAKE2b-256 9c7d124eb0cb5375450777fdf241b82b4492c094ca592f8ce40cdb0b29f2f570

See more details on using hashes here.

File details

Details for the file django_rest_multiple_models-2.1.3-py3-none-any.whl.

File metadata

  • Download URL: django_rest_multiple_models-2.1.3-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for django_rest_multiple_models-2.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0fcb16671513e726047881527b01d606ea8d5bda645451f1ddad1fc6a6eb5bdf
MD5 e813d2e0232845d6243c4d1594069b3e
BLAKE2b-256 9e84bb2c1650874e99543b5b6c6258dab4edc688a84780760feb8347560a0c0c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.1.3 This release

2 files

2.1.1

2 files

2.1.0

3 files

2.0.1

1 file

2.0.0

1 file

1.8.2

1 file

1.8.1

1 file

1.8.0

1 file

1.7.1

1 file

1.7

1 file

1.6.3

1 file

1.6.1

1 file

1.6

1 file

1.5

1 file

1.3

1 file

1.2

1 file

1.1

1 file

1.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page