mirror of
https://github.com/django-components/django-components.git
synced 2025-08-31 11:17:21 +00:00
Require get_context_data set to accept parameters.
This commit is contained in:
parent
fa3731422f
commit
a2f0e2246b
3 changed files with 12 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue