summaryrefslogtreecommitdiff
path: root/profile/forms.py
diff options
context:
space:
mode:
authorNishanth Amuluru2011-01-07 11:42:34 +0530
committerNishanth Amuluru2011-01-07 11:42:34 +0530
commit89e01c60efdcb6eb5151370e2b211fbf2a844de5 (patch)
treec3fd7dd9e0686900d262af423485d0f69c4290c2 /profile/forms.py
parent5e4a908ac4397a4b1070b8ecf6a85a5031956a42 (diff)
downloadpytask-89e01c60efdcb6eb5151370e2b211fbf2a844de5.tar.gz
pytask-89e01c60efdcb6eb5151370e2b211fbf2a844de5.tar.bz2
pytask-89e01c60efdcb6eb5151370e2b211fbf2a844de5.zip
created view for editing profile and created corresponding template
Diffstat (limited to 'profile/forms.py')
-rw-r--r--profile/forms.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/profile/forms.py b/profile/forms.py
index ed4b455..e1662b8 100644
--- a/profile/forms.py
+++ b/profile/forms.py
@@ -1,4 +1,3 @@
-
import os
import PIL
@@ -82,3 +81,8 @@ class CustomRegistrationForm(RegistrationFormUniqueEmail):
return new_user
+class EditProfileForm(forms.ModelForm):
+
+ class Meta:
+ model = Profile
+ fields = ['aboutme', 'gender', 'dob', 'address', 'phonenum']