Django class based view wrapper for ajax api implementation