skillfed

django-rest-multiple-models

Multiple model/queryset view (and mixin) for Django Rest Framework

django-rest-multiple-models v2.1.3 138.3K downloads/30d#11,331 on PyPI548
Permissive license MIT License DORMANT released

What it is and what it does

django-rest-multiple-models is a lightweight extension for Django REST Framework that lets you return data from multiple models or querysets in a single API view. Instead of writing custom logic to combine serializers and querysets, you use the provided MultipleModelAPIView class or mixin, which handles the serialization and response formatting for you. It's designed as a drop-in addition to DRF, requiring only installation and registration in INSTALLED_APPS.

The package has been stable since its first release but has not been actively maintained since its latest release. It carries no known security vulnerabilities and has no runtime dependencies beyond Django and DRF themselves, making it lightweight to add to an existing project. However, its dormant status means you should verify compatibility with your current framework versions before relying on it for new projects.

Use it for:

  • Return user profile data alongside their recent posts in a single endpoint without writing custom view logic.
  • Combine results from multiple related models in a paginated API response.
  • Build a dashboard endpoint that fetches and serializes different data types in one call.
  • Reduce API round-trips by serving heterogeneous data from a single view instead of multiple endpoints.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides a Django REST Framework view and mixin for serializing and returning multiple models or querysets in a single API endpoint.

Yes, if you are working with an established Django REST Framework project and need to return multiple models from a single endpoint. The low install friction and permissive license make it a safe addition. However, verify compatibility with your current Django and DRF versions first, since the package is dormant. Not recommended for new projects without confirming it works with your framework stack.

Install

django-rest-multiple-models on PyPI

pip

pip install django-rest-multiple-models

uv

uv add django-rest-multiple-models

poetry

poetry add django-rest-multiple-models

Installing django-rest-multiple-models

Before you install

Low friction install with no runtime dependencies. Maintenance is dormant—last release was 2018-12-01 and last commit 2024-07-01—so expect no active development, though the repository remains accessible.

License in practice

MIT License (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

Quickstart

pip install django-rest-multiple-models

# Add to INSTALLED_APPS
INSTALLED_APPS = (
    ...,
    'drf_multiple_model',
)

# Import and use in views.py
from drf_multiple_model.views import MultipleModelAPIView

Verify before relying

  • Whether the package remains compatible with current Django and Django REST Framework versions beyond those listed in classifiers.
  • Whether dormant status indicates unresolved bugs or incompatibilities with modern Python or framework releases.

Package facts

License MIT License (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance dormant — 2,813 days since the last release
Last repo commit
First released
Downloads 138,339/month — #11,331 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: django_rest_multiple_models-2.1.3-py3-none-any.whl

Environment :: Web EnvironmentFramework :: DjangoIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Topic :: Internet :: WWW/HTTPTopic :: Internet :: WWW/HTTP :: Dynamic Content

Tags

django rest multiple modelsdrf multiple querysetsserialize multiple models djangodjango rest framework multi-model viewdrf multiple serializers endpoint
django-rest-frameworkmulti-model-serialization

More WWW/HTTP packages

urllib3

urllib3 is an HTTP client library that provides…

permissive · top 100 on PyPI

requests

Requests is a Python HTTP library that…

permissive · top 100 on PyPI

h11

h11 is a pure-Python HTTP/1.1 protocol…

permissive · top 100 on PyPI

httpx

HTTPX is a fully featured HTTP client library…

permissive · top 100 on PyPI

httpcore

A minimal low-level HTTP client library that…

permissive · top 100 on PyPI

aiohttp

aiohttp is an async HTTP client and server…

permissive · top 100 on PyPI

django-rest-polymorphic

Provides polymorphic serializers for Django…

permissive · top 5,000 on PyPI

django-service-objects

Provides a Service base class for Django that…

permissive · top 15,000 on PyPI

djangorestframework-bulk

Adds bulk create, update, and delete operations…

permissive · top 15,000 on PyPI

rest-framework-generic-relations

Provides Django REST Framework serializers that…

permissive · top 15,000 on PyPI

django-filter

Django-filter adds dynamic QuerySet filtering…

permissive · top 5,000 on PyPI

drf-nested-routers

Provides routers and serializer fields for…

permissive · top 5,000 on PyPI

drf-writable-nested

Extends Django REST Framework serializers to…

permissive · top 15,000 on PyPI

django-extra-views

Provides additional class-based views for…

permissive · top 15,000 on PyPI

drf-excel

Adds an Excel spreadsheet (xlsx) renderer to…

permissive · top 15,000 on PyPI

djangorestframework-guardian

Integrates django-guardian's object-level…

permissive · top 15,000 on PyPI