equal
deleted
inserted
replaced
1 import os |
1 import os |
2 import PIL |
|
3 |
2 |
4 from django import forms |
3 from django import forms |
5 |
4 |
6 from registration.forms import RegistrationFormUniqueEmail |
5 from registration.forms import RegistrationFormUniqueEmail |
7 from registration.models import RegistrationProfile |
6 from registration.models import RegistrationProfile |
84 ) |
83 ) |
85 new_profile.save() |
84 new_profile.save() |
86 |
85 |
87 return new_user |
86 return new_user |
88 |
87 |
|
88 class CreateProfileForm(forms.ModelForm): |
|
89 |
|
90 class Meta: |
|
91 model = Profile |
|
92 fields = ['full_name', 'aboutme', 'gender', 'dob', 'address', 'phonenum'] |
|
93 |
89 class EditProfileForm(forms.ModelForm): |
94 class EditProfileForm(forms.ModelForm): |
90 |
95 |
91 class Meta: |
96 class Meta: |
92 model = Profile |
97 model = Profile |
93 fields = ['full_name', 'aboutme', 'gender', 'dob', 'address', 'phonenum'] |
98 fields = ['full_name', 'aboutme', 'gender', 'dob', 'address', 'phonenum'] |