roverdotcom / django-prefetch-utils

Utilities for working with Django's prefetch_related system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

docs Documentation Status
tests Coverage Status
package
PyPI Package latest release PyPI Wheel Supported versions Supported implementations
Commits since latest release

This library provides a number of utilities for working with and extending Django's prefetch_related system. Currently, it consists of:

  • a collection of descriptors to define relationships between models which support prefetching
  • a new implementation of prefetch_related_objects which supports an identity map so that multiple copies of the same object are not fetched multiple times.
  • Free software: BSD 3-Clause License

Installation

pip install django-prefetch-utils

Documentation

https://django-prefetch-utils.readthedocs.io/

About

Utilities for working with Django's prefetch_related system

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%