Skip to main content

Package automatically detects relation fields and seamlessly integrates them into select_related and prefetch_related methods

Project description

django-relations

Installation

# with pip

pip install django-relations

# with pipenv

pipenv install django-relations

Using

from django_relations import AbstractDefaultClass

class MyModel(AbstractDefaultClass):
    field1 = models.OneToOneField(Model1, ...)
    field2 = models.ForeignKey(Model2, ...)
    field3 = models.ManyToManyField(Model3, ...)

Description

Boost your Django app's speed with the all-new django-relations package. Say goodbye to manual query optimization – this package automatically detects relation fields and seamlessly integrates them into select_related and prefetch_related methods. 🚀 Supercharge response times, enhance UX, and free up your creative genius. Embrace efficiency and let django-relations handle the heavy lifting. Your queries, elevated.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-relations-0.2.2.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file django-relations-0.2.2.tar.gz.

File metadata

  • Download URL: django-relations-0.2.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for django-relations-0.2.2.tar.gz
Algorithm Hash digest
SHA256 eda12a603e4681314669c696927e453911275e08c8b4ca15b152e0149e6d6905
MD5 76bbce8e9cc3db6cb96cabd4d7fef004
BLAKE2b-256 a253bdadfb89f1ca6c74b269b4b48e2a4d068d40107bf902719cd0f6ad511eb5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page