Although I thought it would work, it isn't working, or I am doing something wrong:
{% for app in app_list %} {% if perms.app.name %} ... some html code {% endif %} {% endfor %} This won't work, because in: class PermLookupDict: def __init__(self, user, module_name): self.user, self.module_name = user, module_name def __repr__(self): return str(self.user.get_permission_list()) def __getitem__(self, perm_name): return self.user.has_perm("%s.%s" % (self.module_name, perm_name)) def __nonzero__(self): return self.user.has_module_perms(self.module_name) __getitem__ gets called, because the . in app.name is in the way here... I don't really know how to get around this...