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"): if request.path != reverse("admin:index"):
return {} return {}
my_dash = get_or_create_dash(request.user) my_dash = get_or_create_dash(request.user)
if my_dash:
selected = request.GET.get("dash", my_dash[0]["slug"]) selected = request.GET.get("dash", my_dash[0]["slug"])
else:
selected = ""
return { return {
"sigi_dashes": my_dash, "sigi_dashes": my_dash,
"sigi_dash_selected": selected, "sigi_dash_selected": selected,

Loading…
Cancel
Save