mirror of
https://github.com/django/django.git
synced 2025-10-28 08:06:09 +00:00
Fixed #28933 -- Improved the efficiency of ModelAdmin.date_hierarchy queries.
This commit is contained in:
@@ -16,6 +16,7 @@ class CustomPaginator(Paginator):
|
||||
|
||||
|
||||
class EventAdmin(admin.ModelAdmin):
|
||||
date_hierarchy = 'date'
|
||||
list_display = ['event_date_func']
|
||||
|
||||
def event_date_func(self, event):
|
||||
|
||||
Reference in New Issue
Block a user