Answer the question
In order to leave comments, you need to log in
How to override child get_context_data from child ListView?
There is a class PostsList from ListView
class PostsList(ListView):
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
print('check_perent')
return context
class SearchView(PostsList):
def get_context_data(self, **kwargs):
context = super().get_context_data(self, **kwargs)
print('check_child')
return context
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question