django-rest-multiple-models
Multiple model/queryset view (and mixin) for Django Rest Framework
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-modelsuv
uv add django-rest-multiple-modelspoetry
poetry add django-rest-multiple-modelsInstalling 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
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
django-rest-polymorphicProvides polymorphic serializers for Django…
permissive · top 5,000 on PyPI
django-service-objectsProvides a Service base class for Django that…
permissive · top 15,000 on PyPI
djangorestframework-bulkAdds bulk create, update, and delete operations…
permissive · top 15,000 on PyPI
rest-framework-generic-relationsProvides Django REST Framework serializers that…
permissive · top 15,000 on PyPI
django-filterDjango-filter adds dynamic QuerySet filtering…
permissive · top 5,000 on PyPI
drf-nested-routersProvides routers and serializer fields for…
permissive · top 5,000 on PyPI
drf-writable-nestedExtends Django REST Framework serializers to…
permissive · top 15,000 on PyPI
django-extra-viewsProvides additional class-based views for…
permissive · top 15,000 on PyPI
drf-excelAdds an Excel spreadsheet (xlsx) renderer to…
permissive · top 15,000 on PyPI
djangorestframework-guardianIntegrates django-guardian's object-level…
permissive · top 15,000 on PyPI