adds an action 'compare' to the admin panel on a page with a list of objects.
Project description
Django-admin-compare
Description
adds an action compare
to the admin panel on a page with a list of objects.
Page admin change_list
Page admin compare
Install
add 'django_admin_compare' to INSTALLED_APPS
Use
use somewhere in admin.py:
from django_admin_compare.action import compare
class ArticleAdmin(admin.ModelAdmin):
list_display = ['title', 'status']
ordering = ['title']
actions = [compare] #add compare in action
Overwrite css
Use css class table
table-compile
for override style.
For example, you can add when you redefine the django template change_list.html.
requires: Django>=3.2 ,<4 but it will probably work on other versions as well
License MIT
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
Close
Hashes for django-admin-compare-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02b39a024c8941ccce709610969aabf3401742e0a0d7290741565f23f3bd4ea2 |
|
MD5 | 31262b93a20842ec60ca06dafd3708c7 |
|
BLAKE2b-256 | 654c14a303aa231fb705facc35221054d00a7d83f1a38e137be8461e48a6cf11 |
Close
Hashes for django_admin_compare-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1b527978f9838d1de7d80c3e1c8bdf7bffa007e791cbf12fa8881a1c2ed77dd |
|
MD5 | 80a78375ce74f7e412e1384293aed7cc |
|
BLAKE2b-256 | d31eb4d6c76c44684d5d9404d0bb99247efa702903c1af0a6b84a96145e83afe |