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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file django-admin-compare-0.2.1.tar.gz.

File metadata

  • Download URL: django-admin-compare-0.2.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.1

File hashes

Hashes for django-admin-compare-0.2.1.tar.gz
Algorithm Hash digest
SHA256 02b39a024c8941ccce709610969aabf3401742e0a0d7290741565f23f3bd4ea2
MD5 31262b93a20842ec60ca06dafd3708c7
BLAKE2b-256 654c14a303aa231fb705facc35221054d00a7d83f1a38e137be8461e48a6cf11

See more details on using hashes here.

File details

Details for the file django_admin_compare-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_admin_compare-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a1b527978f9838d1de7d80c3e1c8bdf7bffa007e791cbf12fa8881a1c2ed77dd
MD5 80a78375ce74f7e412e1384293aed7cc
BLAKE2b-256 d31eb4d6c76c44684d5d9404d0bb99247efa702903c1af0a6b84a96145e83afe

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