fix no REQUEST attribute bug

http://manage.dimagi.com/default.asp?143186
I don't think its deprecated in our version of Django (1.5).