old_contents: 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()
  
  
  @register.assignment_tag(takes_context=True)
  def get_dashboard(context, location):
      dashboard_cls = get_current_dashboard(location)
  
      resolver = resolve(context['request'].path)
      app_label = resolver.kwargs.get('app_label')
  
      return dashboard_cls(context, app_label=app_label)
new_contents: from __future__ import unicode_literals
  from django import template
  from jet.dashboard.utils import get_current_dashboard
  
  register = template.Library()
  
  
  @register.assignment_tag(takes_context=True)
  def get_dashboard(context, location):
      dashboard_cls = get_current_dashboard(location)
  
      app_label = context['request'].resolver_match.kwargs.get('app_label')
  
      return dashboard_cls(context, app_label=app_label)
  
subject: use HttpRequest().resolver_match instead of resolve() (#131)