Skip to main content

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


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-compare-0.2.1.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

django_admin_compare-0.2.1-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

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