Slide 6
Slide 6 text
class
TemplateView(TemplateResponseMixin,
ContextMixin,
View):
def
get(self,
request,
*args,
**kwargs):
context
=
self.get_context_data(params
=
kwargs)
return
self.render_to_response(context)
class
DetailView(SingleObjectTemplateResponseMixin,
BaseDetailView):
pass
class
ListView(MulQpleObjectTemplateResponseMixin,BaseListView):
pass
Реализация