added form for editing address and name anoop
authornishanth
Fri, 03 Sep 2010 15:58:24 +0530
branchanoop
changeset 234 cf3de6d222ce
parent 233 c5df028e4438
child 235 7583311884e1
added form for editing address and name
sdi/forms.py
--- a/sdi/forms.py	Fri Aug 27 14:09:04 2010 +0530
+++ b/sdi/forms.py	Fri Sep 03 15:58:24 2010 +0530
@@ -206,3 +206,8 @@
 
     return myF(post_data) if post_data else myF()
 
+def EditAddressForm(forms.ModelForm):
+
+    class Meta:
+        model = Regristrant
+        fields = ["first_name", "last_name", "address"]