On Thu, Jul 16, 2009 at 11:01 PM, Kenneth
Gonsalves<law...@thenilgiris.com> wrote:
> how do I pass request.user.id to a templatetag. if I do:
>
> {% get_menu request.user.id %}
>
> the string 'request..user.id' gets passed.

You handle this by using the standard variable-resolution mechanism
inside your tag's Node subclass; consult the documentation on custom
tags for details.


-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

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

Reply via email to