adds an action 'compare' to the admin panel on a page with a list of objects.
Project description
Django-admin-compare
adds an action compare
to the admin panel on a page with a list of objects.
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
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.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88f81e9fd2352d2c9e4ad57a4a1e7bb9fddba6addec44eaa15c95b13c26c008c |
|
MD5 | dce4aaceada67657c41d8b2d8b1032f3 |
|
BLAKE2b-256 | 99b62ab8306e5c2d70ebf8cee0a4dd6cab29ee5554c32fd92b418c5b9adbef10 |