Renamed get_context to get_context_data

This commit is contained in:
Real-Gecko 2021-09-01 12:23:12 +06:00 committed by Emil Stenström
parent b322ab0294
commit 5fcabaa5ba
7 changed files with 22 additions and 22 deletions

View file

@ -19,7 +19,7 @@ class SimpleComponentAlternate(component.Component):
class SimpleComponentWithSharedDependency(component.Component):
template_name = "simple_template.html"
def context(self, variable, variable2="default"):
def get_context_data(self, variable, variable2="default"):
return {
"variable": variable,
"variable2": variable2,