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
Close
Hashes for django-modeladmin-2021.7.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f304c1c81316dc516f242ea72b9a3b146f7c6b5d24ffb2dc9e7dc9ebad2bf568 |
|
MD5 | 0debf788a2d5689bf36f478859caaeca |
|
BLAKE2b-256 | 97be789fc5b47d092e9906ca21f1bf57e8c2f60a4e5738fe37bd835281895d14 |