Refactored assignment delete view to a class based view