diff --git a/aleksis/core/models.py b/aleksis/core/models.py index 8927844a47da2f30e030a9b0815e82539940d8ba..494a51f555bf9290d4e299ffde2856234379c191 100644 --- a/aleksis/core/models.py +++ b/aleksis/core/models.py @@ -665,7 +665,7 @@ class DashboardWidget(PolymorphicModel, PureDjangoModel): class MyWidget(DhasboardWIdget): template = "myapp/widget.html" - def get_context(self): + def get_context(self, request): context = {"some_content": "foo"} return context @@ -718,7 +718,7 @@ class DashboardWidget(PolymorphicModel, PureDjangoModel): default=4, ) - def get_context(self): + def get_context(self, request): """Get the context dictionary to pass to the widget template.""" raise NotImplementedError("A widget subclass needs to implement the get_context method.")