Trying to edit Pinax django-user-account sign up process with help of this document: http://django-user-accounts.readthedocs.org/en/latest/usage.html#customizing-the-sign-up-process
I have attached these to my views.py as instructed:
def after_signup(self, form):
self.create_profile(form)
super(SignupView, self).after_signup(form)
def create_profile(self, form):
profile = self.created_user.get_profile()
profile.firstname = form.cleaned_data["firstname"]
profile.save()
Well, getting error "'User' object has no attribute 'get_profile'". I'm using Django 1.7.6 and according to documentation get_profile() has been removed from Django 1.7. How should I change profile getting?
Thanks in advance!