Make variable required.

This commit is contained in:
Emil Stenström 2015-06-14 14:42:01 +02:00
parent 51ca8e3a15
commit 005460543b

View file

@ -5,7 +5,7 @@ from django_components import component
from .django_test_setup import * # NOQA from .django_test_setup import * # NOQA
class SimpleComponent(component.Component): class SimpleComponent(component.Component):
def context(self, variable=None): def context(self, variable):
return { return {
"variable": variable, "variable": variable,
} }