Saturday, November 27, 2010

Inclusion Tag Permissions

So I am trying to create a navbar that is altered by users logging in
and out.

It is created using an inclusion tag which takes its context.

I tried passing permissions via:
return {
'perms': context['perms'],
'user': context['user'],
etc...
}

when making the inclusion tag.

Perms is a proxy_object on logging.

In my template I tried using these variables but nothing showed up.

Let me know if you have questions. I appreciate any help.

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment