Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.

Commit e4217df

Browse files
committed
improvement: show createTime and modifyTime in admin list_view
1 parent 9426598 commit e4217df

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

django_covid19/admin.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class CityAdmin(BaseAdmin):
6363
list_display = (
6464
'countryCode', 'provinceName', 'provinceCode', 'cityName',
6565
'currentConfirmedCount', 'confirmedCount', 'suspectedCount',
66-
'curedCount', 'deadCount'
66+
'curedCount', 'deadCount', 'createTime', 'modifyTime'
6767
)
6868
search_fields = (
6969
'cityName', 'countryCode', 'provinceCode', 'provinceName'
@@ -76,7 +76,7 @@ class ProvinceAdmin(BaseAdmin):
7676
list_display = (
7777
'countryCode', 'provinceName',
7878
'currentConfirmedCount', 'confirmedCount', 'suspectedCount',
79-
'curedCount', 'deadCount'
79+
'curedCount', 'deadCount', 'createTime', 'modifyTime'
8080
)
8181
search_fields = ('provinceName', 'countryCode')
8282

@@ -86,8 +86,8 @@ class CountryAdmin(BaseAdmin):
8686

8787
list_display = (
8888
'continents', 'countryCode', 'countryName', 'countryFullName',
89-
'currentConfirmedCount', 'confirmedCount',
90-
'suspectedCount', 'curedCount', 'deadCount'
89+
'currentConfirmedCount', 'confirmedCount', 'suspectedCount',
90+
'curedCount', 'deadCount', 'createTime', 'modifyTime'
9191
)
9292
search_fields = (
9393
'continents', 'countryFullName', 'countryCode', 'countryName'

0 commit comments

Comments
 (0)