Refactored edit and create view from assignments to be class based views.