On 5/23/07, Michael Lake <[EMAIL PROTECTED]> wrote: ... > I notice it's a Set object comprising a single list. So I thought I could do > this: > > {% for item in perms.lab %} > {{ item }} > {% endfor %}
Yeah, you can't do attribute access like that for a set. It's not the same as a dictionary. I guess you're looking for any permissions that are for the 'lab' app? Consider moving this into the view or writing a template tag-- There's not an easy way to do str.startswith in a template, which is what you'd need here. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---