1
0
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:
Haki Benita
2017-12-16 20:50:11 +02:00
committed by Tim Graham
parent fe99fb860f
commit ff5517988a
3 changed files with 89 additions and 0 deletions

View File

@@ -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):