Update modules.py

user.username not assumed right in django 1.5. made code compatible with django 1.5+ and previous versions.