'Returns a QuerySet of all model instances that can be edited by the
admin site. This is used by changelist_view.'

def get_queryset(self, request):

    qs = self.model._default_manager.get_queryset()
    ordering = self.get_ordering(request)
    if ordering:
        qs = qs.order_by(*ordering)
    return qs
