semvec/pypi-packages huggingface dataset:
django-admin-countless 0.4.0
Countless admin mixin for Django
License: MIT

Django-admin-countless
======================

Django-Admin-Countless provides a mixin for Django admin to eliminate count 
queries.

[![Build Status](https://github.com/just-work/django-admin-countless/workflows/build/badge.svg?branch=master&event=push)](https://github.com/just-work/django-admin-countless/actions?query=event%3Apush+branch%3Amaster+workflow%3Abuild)
[![codecov](https://codecov.io/gh/just-work/django-admin-countless/branch/master/graph/badge.svg)](https://codecov.io/gh/just-work/django-admin-countless)
[![PyPI version](https://badge.fury.io/py/django-admin-countless.svg)](https://badge.fury.io/py/django-admin-countless)

Installation
------------

```shell script
pip install django-admin-countless
```

Usage
-----

Full example located at `testproject.testapp.admin`

```python
from django.contrib import admin

from countless_admin import CountlessAdminMixin
from test_project.test_app.models import MyModel


@admin.register(MyModel)
class MyModelAdmin(CountlessAdminMixin, admin.ModelAdmin):
    pass
```