[Answer]-Pinax – Customizing the sign up process – get_profile()

1πŸ‘

Even i got the same error you mentioned. We will specify the AUTH_PROFILE_MODULE=account.UserProfile.But
The AUTH_PROFILE_MODULE setting, and the get_profile() method on the User model, will be removed. follow this link http://deathof*gremmie.com/2014/05/24/retiring-get-profile-and-auth-profile-module/

I’m try to using the code like this. It worked for me.

def create_profile(self, form):
    profile = self.created_user.profile
    # you can use this line to either one of it will work
    # profile = self.created_user
    profile.firstname = form.cleaned_data["firstname"]
    profile.save()
πŸ‘€Seenu S

Leave a comment