profile/forms.py
changeset 269 dde894b36370
parent 254 5c000bf6f241
child 300 ce5f3cdbd545
equal deleted inserted replaced
268:f501fc2a9f4c 269:dde894b36370
     1 
       
     2 import os
     1 import os
     3 import PIL
     2 import PIL
     4 
     3 
     5 from django import forms
     4 from django import forms
     6 
     5 
    80                              )
    79                              )
    81         new_profile.save()
    80         new_profile.save()
    82         
    81         
    83         return new_user
    82         return new_user
    84 
    83 
       
    84 class EditProfileForm(forms.ModelForm):
       
    85 
       
    86     class Meta:
       
    87         model = Profile
       
    88         fields = ['aboutme', 'gender', 'dob', 'address', 'phonenum']