mirror of
https://github.com/django-components/django-components.git
synced 2025-08-30 18:57:20 +00:00
Renamed get_context
to get_context_data
This commit is contained in:
parent
b322ab0294
commit
5fcabaa5ba
7 changed files with 22 additions and 22 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue