commit | 7a8ca75798177aadf3ef8f45fbbc888c39897cd4 | [log] [tgz] |
---|---|---|
author | Arpit Agarwal <arpiagariu@gmail.com> | Tue Aug 16 12:58:14 2016 -0700 |
committer | Arpit Agarwal <arpiagariu@gmail.com> | Tue Aug 16 12:58:14 2016 -0700 |
tree | 79a01bce137935c09984a2842a0453336f6f792b | |
parent | 1ba6a8642b2db40828cf4cb277c764bec6d25ed7 [diff] |
Added check for dashboard in URL Change-Id: If353b319b87e4ea8bf9718b7c39f3aa11a7c2d22
diff --git a/xos/core/templatetags/core_tags.py b/xos/core/templatetags/core_tags.py index 6d533d7..a692193 100644 --- a/xos/core/templatetags/core_tags.py +++ b/xos/core/templatetags/core_tags.py
@@ -19,7 +19,7 @@ active = None for d in dashboards_list: - if str(d.id) in request.path: + if str(d.id) in request.path and "admin/dashboard" in request.path: active = d.id if active is None and ("/admin/" == request.path or "/" == request.path):