Require get_context_data set to accept parameters.

This commit is contained in:
Emil Stenström 2021-09-10 12:25:35 +02:00
parent fa3731422f
commit a2f0e2246b
3 changed files with 12 additions and 2 deletions

View file

@ -11,6 +11,9 @@ from .testutils import create_and_process_template_response, Django30CompatibleS
class SimpleComponentAlternate(component.Component):
template_name = "simple_template.html"
def get_context_data(self, variable):
return {}
class Media:
css = "style2.css"
js = "script2.js"