Browse Source

Fix rebase.

Michael Kutý 8 years ago
parent
commit
78bc2d2b24
1 changed files with 3 additions and 1 deletions
  1. 3 1
      jet/dashboard/templatetags/jet_dashboard_tags.py

+ 3 - 1
jet/dashboard/templatetags/jet_dashboard_tags.py

@@ -1,5 +1,6 @@
 from __future__ import unicode_literals
 from django import template
+from django.core.urlresolvers import resolve
 from jet.dashboard.utils import get_current_dashboard
 
 register = template.Library()
@@ -9,7 +10,8 @@ register = template.Library()
 def get_dashboard(context, location):
     dashboard_cls = get_current_dashboard(location)
 
-    app_label = context['request'].resolver_match.kwargs.get('app_label')
+    resolver = resolve(context['request'].path)
+    app_label = resolver.kwargs.get('app_label')
 
     return dashboard_cls(context, app_label=app_label)