summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrimal Pappachan2012-03-31 11:52:12 +0530
committerPrimal Pappachan2012-03-31 11:52:12 +0530
commit37fa1ecc43e78ca8ec7729483a89e06c6e1ad750 (patch)
tree769aadcf44b675815ad5b671c46079e17c418ee5
parent5a8592ef3abc2d3dce4043a45af610d8cb93ed9a (diff)
downloadaloha-37fa1ecc43e78ca8ec7729483a89e06c6e1ad750.tar.gz
aloha-37fa1ecc43e78ca8ec7729483a89e06c6e1ad750.tar.bz2
aloha-37fa1ecc43e78ca8ec7729483a89e06c6e1ad750.zip
change in phoneno model and form field
-rw-r--r--aloha/allotter/forms.py3
-rw-r--r--aloha/allotter/models.py2
2 files changed, 2 insertions, 3 deletions
diff --git a/aloha/allotter/forms.py b/aloha/allotter/forms.py
index 1809b12..2fb039e 100644
--- a/aloha/allotter/forms.py
+++ b/aloha/allotter/forms.py
@@ -104,8 +104,7 @@ class UserDetailsForm(forms.Form):
email = forms.EmailField(label="Email Address", widget=forms.TextInput(attrs={"placeholder":"john@example.com",}),
help_text="Enter a valid email id where you will able to receive correspondence from JAM 2012.")
- phone_number = forms.IntegerField(label="Phone number", widget=forms.TextInput(attrs={"placeholder":"9876543210",}),
- help_text="Phone number with code")
+ phone_number = forms.CharField(label="Phone number", max_length=15, widget=forms.TextInput(attrs={"placeholder":"9876543210",}), help_text="Phone number with code")
def clean_phone_number(self):
diff --git a/aloha/allotter/models.py b/aloha/allotter/models.py
index 7e05b36..d333deb 100644
--- a/aloha/allotter/models.py
+++ b/aloha/allotter/models.py
@@ -121,7 +121,7 @@ class Profile(models.Model):
secondary_email = models.EmailField(verbose_name=u"Secondary Email", blank=True, null=True,
help_text=u"Email address read from user after authentication")
- phone_number = models.IntegerField(max_length=10, verbose_name="Phone Number", blank=True, null=True,
+ phone_number = models.CharField(max_length=15, verbose_name="Phone Number", blank=True, null=True,
help_text=u"Phone number read from user after authentication")
#Application for the Profile