Fix compatibility with custom user model in django 1.5 and above
Merge pull request #1 from vinhluan/master

Fix compatibility with custom user model in django 1.5 and above