1. grh
  2. django-admin-tools

Commits

Mikhail Korobov  committed 1fecc05

modules.LinkList is fixed

  • Participants
  • Parent commits b917800
  • Branches default

Comments (0)

Files changed (1)

File admin_tools/dashboard/modules.py

View file
  • Ignore whitespace
             if isinstance(link, (tuple, list,)):
                 link_dict = {'title': link[0], 'url': link[1]}
                 if len(link) >= 3:
-                    link_dict['external'] = link[3]
+                    link_dict['external'] = link[2]
                 if len(link) >= 4:
-                    link_dict['description'] = link[4]
+                    link_dict['description'] = link[3]
                 new_children.append(link_dict)
             else:
                 new_children.append(link)