Skip to content

Commit

Permalink
Always return admin.site as fallback in AdminSite detection #105
Browse files Browse the repository at this point in the history
  • Loading branch information
darklow committed Dec 27, 2013
1 parent dbf19d1 commit d4a614d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion suit/templatetags/suit_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ def get_admin_site(current_app):
if isinstance(func_closure.cell_contents, AdminSite):
return func_closure.cell_contents
except:
return admin.site
pass
return admin.site


class Menu(object):
Expand Down

0 comments on commit d4a614d

Please sign in to comment.