Django 1.5: Read request variable in template tag

Django 1.5: Read request variable in template tag

I am in the process of turning a Django project into a multi-language
site. For that purpose I am trying to adopt the countries-for-django
(github) package.
In one of the templatetags, the code is trying to read the session
variable django_country (taken from here), but Django 1.5 trips over
reading the request variable from the context.
Exception Type: AttributeError
Exception Value: 'NoneType' object has no attribute 'session'
The code in the template tag is as stated below:
def get_current_country(self, context):
return context.get('request').session.get('django_country')
When I print the context variable, the print out does not contain any
request variable. However, I can see via the Django Toolbar that the
variable is existing.
Did the way of reading the context variable change with Django 1.5? I
could not find anything in the documentation.