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!
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/bd6524e9-3220-455f-8926-d165376bd0bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment