Revert "use get_username function when appropriate"

This reverts commit 4299078f36223f1990cb69624585bba850e181ac.
Changes not supported in django 1.4