By default, after authentication on /admin, function authenticate()
returns User
object,
According to the django docs http://docs.djangoproject.com/en/dev/topics/auth/#storing-additional-information-about-user, you need to add to your settings file:
AUTH_PROFILE_MODULE = 'app.HandyUser'
And then when you reference your User class, call the user.get_profile
method which will return the instance of HandyUser.
精彩评论