Skip to main content

Django Nested Values

PyPI version CI

Adds .values_nested() to Django querysets. Rows come back as dictionaries with the select_related() and prefetch_related() data nested inside, built straight from the database rows without model instances.

Quick Example

Book.objects.only("title").select_related("publisher").prefetch_related("authors").values_nested()
# [{"id": 1, "title": "...", "publisher_id": 1, "publisher": {...}, "authors": [...]}, ...]

Documentation

See the full documentation for installation, usage, and API reference.

Supported Versions

Python 3.13 Python 3.14
Django 5.2
Django 6.0
Django 6.1

CI also runs the test suite on the free-threaded Python 3.14 build.

License

MIT

Release files for django-nested-values 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-nested-values 1.1.0
File Size Uploaded
django_nested_values-1.1.0.tar.gz 10.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-nested-values 1.1.0
File Interpreter ABI Platform
django_nested_values-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size:20.9 kB

Release files / django_nested_values-1.1.0.tar.gz

Download URL django_nested_values-1.1.0.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b03dc741217a0a5c5ca7d251273aac4286b9fa664e6d819648dcbda76fbbf84e
BLAKE2b-256 checksum
How to use checksums
069e78e7716cebedff9dd79d751d7e71da39af8b24eb4da1a9ac8638967e638e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

Release files / django_nested_values-1.1.0-py3-none-any.whl

Download URL django_nested_values-1.1.0-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
033e04785e45e22a5c36d3ea4d9f56b8323651aabd14bc4b11e90077a52c11f5
BLAKE2b-256 checksum
How to use checksums
3dddb90e2d7f9d16297099acb328a5d35b6ee0e168576d7ab767c80e95e4c15a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

0.7.0

2 release files

0.6.14

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page