Customizing the sign up process with Pinax - getting error with get_profile()

25 views
Skip to first unread message

Tumbe

unread,
Mar 18, 2015, 2:58:45 PM3/18/15
to django...@googlegroups.com

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!

Reply all
Reply to author
Forward
0 new messages