def METHOD_NAME(self, *args, **kwargs):
    """Override delete method to update parent thread info."""
    thread = Thread.objects.get(pk=self.thread.id)
    if thread.last_post_id and thread.last_post_id == self.id:
        thread.update_last_post(exclude_post=self)
    thread.replies = thread.post_set.count() - 2
    thread.save()
    super(Post, self).METHOD_NAME(*args, **kwargs)
    # If I was the last post in the thread, delete the thread.
    if thread.last_post is None:
        thread.METHOD_NAME()