1. David Jean Louis
  2. django-admin-tools
Issue #12 resolved

Bookmarks blow up if no cookie

Alex Robbins
created an issue

http://bitbucket.org/izi/django-admin-tools/src/tip/admin_tools/menu/utils.py#cl-36

This line is giving me 'NoneType' object has no attribute 'split'

It looks like unquote can't handle None, which it is getting from request.COOKIES.get('menu.bookmarks'). Maybe you could provide a default to get?

request.COOKIES.get('menu.bookmarks', '')

Then you'd need to change the next line to

if json_str != '':

Comments (1)

  1. Log in to comment