Skip to main content

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.


  1. Install the package from pip:

    pip install django-rest-multiple-models
  2. Make sure to add ‘drf_multiple_model’ to your INSTALLED_APPS:

  3. Then simply import the view into any in which you’d want to use it:

    from drf_multiple_model.views import MultipleModelAPIView


Documentation is on ReadTheDocs:

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django_rest_multiple_models-2.1.3-py3-none-any.whl (7.4 kB) Copy SHA256 hash SHA256 Wheel py3
django-rest-multiple-models-2.1.3.tar.gz (8.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page