Skip to main content

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.

Demo of Pinned Models

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'))
  1. 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_admin_user_favorites-0.0.1.tar.gz (57.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_admin_user_favorites-0.0.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file django_admin_user_favorites-0.0.1.tar.gz.

File metadata

File hashes

Hashes for django_admin_user_favorites-0.0.1.tar.gz
Algorithm Hash digest
SHA256 cd6c5e4b7264b2bca703aa1ce21e04383889a5dc87fef229fa931562c6d32462
MD5 b1f7ff9d8923da0d46f20dca308eb0d9
BLAKE2b-256 ed2b2faa22ee9fb00fa4a419e00d3a817cf0195cfeaa8761fa517eb9c0244714

See more details on using hashes here.

File details

Details for the file django_admin_user_favorites-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_admin_user_favorites-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bb1c75b43d3ae21c6ba498edfb8c6f149d969ad8ef12993bf0928b8e7a16f144
MD5 cdbe1b231b0ba402236f528c4045030a
BLAKE2b-256 09d8ed58a2097030efe3943c494bd853107ee085ed90c2ded89e3a99175ca2b6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page