mirror of
https://github.com/django-components/django-components.git
synced 2025-07-24 08:43:43 +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
|
@ -49,8 +49,8 @@ class Component(metaclass=SimplifiedInterfaceMediaDefiningClass):
|
|||
self.instance_template = None
|
||||
self.slots = {}
|
||||
|
||||
def get_context_data(self, *args, **kwargs):
|
||||
return kwargs
|
||||
def get_context_data(self):
|
||||
return {}
|
||||
|
||||
def get_template_name(self, context=None):
|
||||
if not self.template_name:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue