I am trying to write a custom template filter which takes a variable
which is a model object and grabs fields from a related object based
on request.session['lang'] parameter. Or it would if I knew how to get
the `lang` parameter from within the filter code.

Here is the code:

http://dpaste.com/18914/

line 35, `fieldlang = request.sessions.get` obviously doesn't work
because request object doesn't exist in the scope.

How can I access it?

TIA


Branko
--~--~---------~--~----~------------~-------~--~----~
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