semvec/pypi-packages huggingface dataset:
django-model-objects-count 2021.6.21
Django model objects count interface and middleware
License: Unlicense

[![](https://img.shields.io/badge/released-2021.6.17-green.svg?longCache=True)](https://pypi.org/project/django-model-objects-count/)
[![](https://img.shields.io/badge/license-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ pip install django-model-objects-count
```

### How it works
+   admin interface
+   middleware (optional, admin urls only) - dynamic models `verbose_name_plural` with objects count

#### `settings.py`
```python
INSTALLED_APPS+=['django_model_objects_count']

MIDDLEWARE+=['django_model_objects_count.middleware.ModelObjectsCountMiddleware'] # optional
```
#### `migrate`
```bash
$ python manage.py migrate
```