Pin your favorite models in django admin.
Project description
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.
Install
python -m pip install django_admin_user_favorites
Setup
-
Add 'django_admin_user_favorites' to your INSTALLED_APPS. Note: must be listed before 'django.contrib.admin' or other third party admin apps
-
Add 'django_admin_user_favorites.urls' to your apps
url.py
path('', include('django_admin_user_favorites.urls'))
- In TEMPLATES -> OPTIONS -> context_processors:
Ensure
django.template.context_processors.requestis 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_admin_user_favorites-0.0.1.tar.gz.
File metadata
- Download URL: django_admin_user_favorites-0.0.1.tar.gz
- Upload date:
- Size: 57.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd6c5e4b7264b2bca703aa1ce21e04383889a5dc87fef229fa931562c6d32462
|
|
| MD5 |
b1f7ff9d8923da0d46f20dca308eb0d9
|
|
| BLAKE2b-256 |
ed2b2faa22ee9fb00fa4a419e00d3a817cf0195cfeaa8761fa517eb9c0244714
|
File details
Details for the file django_admin_user_favorites-0.0.1-py3-none-any.whl.
File metadata
- Download URL: django_admin_user_favorites-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb1c75b43d3ae21c6ba498edfb8c6f149d969ad8ef12993bf0928b8e7a16f144
|
|
| MD5 |
cdbe1b231b0ba402236f528c4045030a
|
|
| BLAKE2b-256 |
09d8ed58a2097030efe3943c494bd853107ee085ed90c2ded89e3a99175ca2b6
|