'Set my last post to the newest, excluding given thread and post.'

def update_last_post(self, exclude_thread=None, exclude_post=None):

    posts = Post.objects.filter(thread__forum=self)
    if exclude_thread:
        posts = posts.exclude(thread=exclude_thread)
    self.last_post = _last_post_from(posts, exclude_post=exclude_post)
