Customer Profile new field

20 views
Skip to first unread message

Yahiba

unread,
Mar 10, 2021, 8:37:28 PMMar 10
to django-oscar
Hello,

I want to add some more fields to the profile page and edit profile page.
I forked the customer app and copied the form.py file but I'm not sure of what form
I should change.

I tried the following:

class UserForm(forms.ModelForm):
        .......
        class Meta:
                model = User
                fields = existing_user_fields(['first_name', 'last_name', 'email', 'gender'])

I added a new field gender but it's not showing on the profile page nor edit profile page.
I was looking up on google and this was done before. Only found an example from 2015 tho and it's looking very different. 

Any suggestion please?


Thanks,
Jaime
Reply all
Reply to author
Forward
0 new messages