def changelist_view self request extra_context None from django contri

1
2
3
4
5
def changelist_view(self, request, extra_context=None):
from django.contrib.admin.views.main import ChangeList
old_func = ChangeList.get_query_set
ChangeList.get_query_set = my_get_query_set
super(Gmstatistics, self).changelist_view(self, request, extra_context=None)