Make it work with Django versions < 1.5
Merge pull request #3 from c2h5oh/auth_11

Make it work with Django versions < 1.5