Setting the "magic" request attributes which no longer work in django 1.5
Merge branch 'hotfix/django1.5' into develop