--- id: django-rest-multiple-models version: "2.1.3" license: MIT License license_treatment: permissive maintenance: dormant --- # django-rest-multiple-models — Multiple model/queryset view (and mixin) for Django Rest Framework License: permissive · Maintenance: dormant · Downloads: 138.3K/mo ## 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 above — 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 pip install django-rest-multiple-models uv add django-rest-multiple-models 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: unspecified - Install friction: low - Maintenance: dormant - Downloads: 138.3K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags django rest multiple models, drf multiple querysets, serialize multiple models django, django rest framework multi-model view, drf multiple serializers endpoint, django-rest-framework, multi-model-serialization [View on SkillFed](https://skillfed.io/packages/django-rest-multiple-models) · [View on PyPI](https://pypi.org/project/django-rest-multiple-models/)