Changed post_list and post_detail to Class based views