class Post_Detail(TemplateView):
template_name = 'blog/post_detail.html'
class Post_Detail(TemplateView):
template_name = super().template_name
class CategoryView(TemplateView):
template_folder = 'build'
template_name = 'build/category.html'
...
def get_template_names(self):
template = self.template_name
category_template = '{folder}/{slug}/category.html'.format(folder=self.template_folder, slug=self.category.slug)
return [category_template, template]
...
class A(object):
x = 5
class B(A):
x = 6
def foo(self):
return super().x # вернёт 5