Metadata-Version: 2.4
Name: django_admin_user_favorites
Version: 0.0.1
Summary: Pin your favorite models in django admin.
Project-URL: Homepage, https://github.com/etopiei/django_admin_user_favorites
Project-URL: Issues, https://github.com/etopiei/django_admin_user_favorites/issues
Author-email: etopiei <me.etopiei@gmail.com>
License-File: LICENSE
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.8
Requires-Dist: django>4.2
Description-Content-Type: text/markdown

# Django Admin User Favorites

Pin frequently used models to the top of your django admin panel per user.

Helpful for support staff who utilise the django admin in large apps with lots of models.

Here's an example of it applied to the django 'polls' tutorial app.

![Demo of Pinned Models](docs/demo.png)

## Install

```
python -m pip install django_admin_user_favorites
```

## Setup

1. Add 'django_admin_user_favorites' to your INSTALLED_APPS.
Note: *must be listed before 'django.contrib.admin' or other third party admin apps*

2. Add 'django_admin_user_favorites.urls' to your apps `url.py`

```
path('', include('django_admin_user_favorites.urls'))
```

3. In TEMPLATES -> OPTIONS -> context_processors:
Ensure `django.template.context_processors.request` is present.

And you're done! Now in django admin there should be a small pin next to models and you can click this pin to save a model to the top of your admin page. If you have any problems with the pin you can also do this via django admin itself.