I try to use class-based view like below
class DetailBookVIew(DetailView):
model = Book
template_name = 'book/detail_book.html'
with model Book
is a mongodb model, so how can I use that class-based view with mongodb model, because it will cause error like AttributeError: type object 'Book' has no attribute '_default_manager'
, the _default_manager
attribute only available for sql model.