django-admin-select-columns
Dynamically select columns in django admin changelist view with persistence
Demo
Installation
You can install the package via pip:
pip install django-admin-select-columns
Add django_admin_select_columns to INSTALLED_APPS.
INSTALLED_APPS = [
...
"django_admin_select_columns",
"django.contrib.admin",
...
]
The column configuration is stored in the database. Use the migrate command to create the necessary tables.
python manage.py migrate
Usage
Simply add SelectColumnsMixin to your ModelAdmin.
from django.contrib import admin
from django_admin_select_columns.mixins import SelectColumnsMixin
from my_app.models import Person
@admin.register(Person)
class PersonAdmin(SelectColumnsMixin, admin.ModelAdmin):
list_display = (
"first_name",
"last_name",
"email",
"phone_number",
"gender",
"birthdate",
"is_active",
)
list_filter = ("gender", "is_active")
search_fields = ("first_name", "last_name", "email", "phone_number")
License
This project is licensed under the terms of the MIT license.
Metadata
Release files for django-admin-select-columns 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django_admin_select_columns-1.0.3.tar.gz | 7.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_admin_select_columns-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.1 kB
Release files / django_admin_select_columns-1.0.3.tar.gz
| Download URL | django_admin_select_columns-1.0.3.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c4c7610f58b552876e14c576128dc3d58aabd1bcc0a3d772961cdb819f325f50
|
|
BLAKE2b-256 checksum How to use checksums |
fac0f22e90bf4d9703d9951f0f029e63345a647f25a2f5552c8ccb9579ec93ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.23
|
Release files / django_admin_select_columns-1.0.3-py3-none-any.whl
| Download URL | django_admin_select_columns-1.0.3-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
deac174f621625348df2f9f8bc9311731cb6967658f2ef9e4d8ff0e150b9a2d3
|
|
BLAKE2b-256 checksum How to use checksums |
8241df55765a039d245fb859f43a88f065160b0cbf41ab4e5a6d3ed75d9451eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.23
|
Security for django-admin-select-columns 1.0.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.