Paging depending on grouping of items in Django,messages = Message.objects.filter(head=True).order_by('time')[0:15]