Refactored set_publish_status and assignment_gen_poll to be class based views.