Commits

Simon Hedberg  committed b2578c8

use request.path

  • Participants
  • Parent commits 1099854

Comments (0)

Files changed (2)

File admin_tools/dashboard/utils.py

 
 def _get_dashboard_cls(dashboard_cls, context):
     if type(dashboard_cls) is types.DictType:
-        curr_url = context.get('request').META['PATH_INFO']
+        curr_url = context.get('request').path
         for key in dashboard_cls:
             admin_site_mod, admin_site_inst = key.rsplit('.', 1)
             admin_site_mod = import_module(admin_site_mod)

File admin_tools/utils.py

     if type(dashboard_cls) is types.DictType:
         if context:
             request = context.get('request')
-        curr_url = request.META['PATH_INFO']
+        curr_url = request.path
         for key in dashboard_cls:
             mod, inst = key.rsplit('.', 1)
             mod = import_module(mod)