How to convert your Function Based View into a Class Based View in Dja