def get_queryset(self):
        queryset = super(MostVotedManager, self).get_queryset()
        sql =
        messages = queryset.extra(
            select={
                'vote_count': sql,
            }
        )
        return messages.order_by('-vote_count', 'received_time')