Return the Post position in the paginated list

def get_paginated_position(self):
        """
        Return the Post position in the paginated list
        """
        # If Post list is not paginated
        if not settings.FORUM_THREAD_DETAIL_PAGINATE:
            return 0
        
        count = Post.objects.filter(thread=self.thread_id, created__lt=self.created).count() + 1
        
        return int(math.ceil(count / float(settings.FORUM_THREAD_DETAIL_PAGINATE)))