Skip to main content

django-cards-admin

Show cards in changelist instead of table for django admin site.

Install

pip install django-cards-admin

Settings

pro/settings.py

INSTALLED_APPS = [
    ...
    "django_simple_tags",
    "django_cards_admin",
    ...
]

Usage

app/admin.py

from django.contrib import admin
from django_cards_admin.admin import DjangoCardsAdminMixin
from .models import Book

class BookAdmin(DjangoCardsAdminMixin, admin.ModelAdmin):
    result_cards_columns = 5
    max_cards_number = 5
    result_card_body_height = 200
    list_display = ["title", "author", "isbn"]

admin.site.register(Book, BookAdmin)

Configurations

  • result_cards_columns = 4 # how many columns
  • max_result_cards_number = 10 # if the number of the results is more than max_cards_number, show list instead of cards
  • result_card_body_height = 100 # card body height in px
  • result_card_body_min_width = 200 # card body min-width in px
  • result_card_title_template = "result-card-title.html" # card title template, smart select by app_label and model_name
  • result_card_body_template = "result-card-body.html" # card body template, smart select by app_label and model_name
  • result_card_footer_template = "result-card-footer.html" # card footer template, smart select by app_label and model_name

Release

v0.1.0 2020/02/23

  • First release.

v0.2.0 2020/03/19

  • Fix result-cards width problem in filtered changelist.

v0.3.0 2020/03/21

  • Add item link and link title override mechanism. Requires django-simple-tags>=0.4.0.

v0.3.1 2020/04/28

  • Remove print() statements in admin.py.

v0.3.2 2023/09/15

  • Doc update.

v0.3.3 2025/10/21

  • Doc update.

Metadata

Release files for django-cards-admin 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-cards-admin 0.3.3
File Size Uploaded Provenance Actions
django_cards_admin-0.3.3.tar.gz 6.3 kB Without provenance Details for django_cards_admin-0.3.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-cards-admin 0.3.3
File Interpreter ABI Platform Actions
django_cards_admin-0.3.3-py3-none-any.whl Python 3 none any Details for django_cards_admin-0.3.3-py3-none-any.whl

Total release size: 13.5 kB

Release files / django_cards_admin-0.3.3.tar.gz

Download URL django_cards_admin-0.3.3.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
db53fea1ab9ec83816c700b5a5cc652477b508bb65f76f520ad333dccdaadfa6
BLAKE2b-256 checksum
How to use checksums
84d856e4501a877123ba43eaf54bed04bfb6a812ea78d9a141fe7ed5714f835d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.12

Release files / django_cards_admin-0.3.3-py3-none-any.whl

Download URL django_cards_admin-0.3.3-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
477e1aac23e03d252b107f9d4fcaee297b816a560910b315808bfbaaeecaaead
BLAKE2b-256 checksum
How to use checksums
284ea769a078f83b555275ed522549725c770dd43f93b35f1f6539d697fcec52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.12

Security for django-cards-admin 0.3.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page