1. glic3rinu
  2. django-admin-tools-fixes

Commits

David Jean Louis  committed eebcde1

fixed issue #12: bookmarks blow up if no cookie

  • Participants
  • Parent commits efc413f
  • Branches default

Comments (0)

Files changed (1)

File admin_tools/menu/utils.py

View file
     """
     Returns the bookmarked items or raise an exception.
     """
-    json_str = urllib.unquote(request.COOKIES.get('menu.bookmarks'))
-    if json_str is not None:
+    json_str = urllib.unquote(request.COOKIES.get('menu.bookmarks', ''))
+    if json_str:
         return simplejson.loads(json_str)
     return []