Django ModelAdmin replacement
Project description
Installation
$ pip install django-modeladmin
Pros
- auto
list_display
(all fields) - auto
list_filter
(BooleanField
fields) - auto
search_fields
(CharField
andTextField
fields) list_display
formatters -elapsed
,strftime
,timesince
Examples
admin.py
from django_modeladmin import admin
from .models import MyModelAdmin
@admin.register(Author)
class MyModelAdmin(admin.ModelAdmin):
...
list_display
formatters:
list_display = [
'id',
'started_at',
('strftime','started_at','%H-%M-%S','started',),
('elapsed','started_at','finished_at','elapsed',),
('timesince','created_at','',),
]
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
File details
Details for the file django-modeladmin-2021.7.2.tar.gz
.
File metadata
- Download URL: django-modeladmin-2021.7.2.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f304c1c81316dc516f242ea72b9a3b146f7c6b5d24ffb2dc9e7dc9ebad2bf568 |
|
MD5 | 0debf788a2d5689bf36f478859caaeca |
|
BLAKE2b-256 | 97be789fc5b47d092e9906ca21f1bf57e8c2f60a4e5738fe37bd835281895d14 |