我正在尝试为我的模型使用一个通用的DetailView,我得到了错误:ClassroomDetailView is missing a QuerySet.Define ClassroomDetailView.model, ClassroomDetailView.queryset, or override ClassroomDetailView.get_queryset我的理解是,通用DetailView不需要查询集。def __str__(self):
return self.classr
请看我的错误:ScheduleConfirmedis missing a QuerySet.Define ScheduleConfirmed.model, ScheduleConfirmed.queryset, or override ScheduleConfirmed.get_queryset并查看我的views.py
# vie
我收到错误CreateView is missing a QuerySet.Define CreateView.model, CreateView.queryset, or override CreateView.get_queryset().python3.4/site-packages/django/views/generic/edit.py", line 152, in get_form_class
model = self.get_queryset