mirror of
https://github.com/django-components/django-components.git
synced 2025-11-20 06:45:32 +00:00
Make variable required.
This commit is contained in:
parent
51ca8e3a15
commit
005460543b
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ from django_components import component
|
|||
from .django_test_setup import * # NOQA
|
||||
|
||||
class SimpleComponent(component.Component):
|
||||
def context(self, variable=None):
|
||||
def context(self, variable):
|
||||
return {
|
||||
"variable": variable,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue