Skip to main content

A decorator to help remind you to use select_related.

Only use this while in development. Leaving it in production is a bad idea.

from nolazyqueries import no_lazy_queries

@no_lazy_queries()
def some_view(request):

    # Will raise an exception
    Foo.objects.first().bar

    # Will not raise an exception
    Foo.objects.select_related('bar').first().bar

Metadata

Release files for django-no-lazy-queries 0.1

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-no-lazy-queries 0.1
File Size Uploaded Provenance
django-no-lazy-queries-0.1.tar.gz 1.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-no-lazy-queries 0.1
File Interpreter ABI Platform
django_no_lazy_queries-0.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 5.1 kB

Release files / django-no-lazy-queries-0.1.tar.gz

Download URL django-no-lazy-queries-0.1.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
bbddf975fd5eab1db7e3b77ab3d7e1e2fd1e9a151630c94c6786231a2d654b72
BLAKE2b-256 checksum
How to use checksums
1b4428d9c91d0feda1e3ac9566239f53ae41a0e41795b003815fd8b25143a990
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_no_lazy_queries-0.1-py2.py3-none-any.whl

Download URL django_no_lazy_queries-0.1-py2.py3-none-any.whl
Size 3.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b432fd369262e1f03462b2f5da0004a6c2ba714b80cc58359463b48731197005
BLAKE2b-256 checksum
How to use checksums
7828567be53141e878635f8f086f0014a4d3ea9dbdee697bca1b020265ab1b72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-no-lazy-queries 0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files No provenance

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