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

Commit 0caf290

Browse files
committed
fix: update statistics admin
1 parent ebf9d12 commit 0caf290

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ncovapi/admin.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ class BaseAdmin(admin.ModelAdmin):
2121
@admin.register(models.Statistics)
2222
class StatisticsAdmin(BaseAdmin):
2323

24-
pass
25-
24+
list_display = (
25+
'globalStatistics', 'domesticStatistics', 'internationalStatistics',
26+
'modifyTime', 'createTime', 'crawlTime'
27+
)
28+
search_fields = ('crawlTime', 'modifyTime')
2629

2730
@admin.register(models.City)
2831
class CityAdmin(BaseAdmin):

0 commit comments

Comments
 (0)