Skip to content
Snippets Groups Projects
Verified Commit af62df62 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Clarify equation

parent efa492ac
No related branches found
No related tags found
1 merge request!423Resolve "Add option to define a default dashboard which is shown if a user hasn't any own dashboard widget"
Pipeline #5120 passed
......@@ -96,7 +96,7 @@ def index(request: HttpRequest) -> HttpResponse:
widgets = request.user.person.dashboard_widgets
if len(widgets) <= 0:
if len(widgets) == 0:
# Use default dashboard if there are no widgets
widgets = DashboardWidgetOrder.default_dashboard_widgets
context["default_dashboard"] = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment