Browse Source

Permite iniciar sem nenhum dashboard

pull/177/head
Sesostris Vieira 6 months ago
parent
commit
3d32b7120f
  1. 3
      sigi/apps/home/context_processors.py

3
sigi/apps/home/context_processors.py

@ -43,7 +43,10 @@ def dashboard(request):
if request.path != reverse("admin:index"):
return {}
my_dash = get_or_create_dash(request.user)
if my_dash:
selected = request.GET.get("dash", my_dash[0]["slug"])
else:
selected = ""
return {
"sigi_dashes": my_dash,
"sigi_dash_selected": selected,

Loading…
Cancel
Save