You should move this in details.py, meaning the click_write_review should return the object AddReview.
and here you should only do :
     add_review_box = click_write_review()