Pass object to class based views.