Re: Newbie: Help with validation

2011-08-10 Thread Shawn Milochik
In [1]: x = '1234' In [2]: x.isdigit() Out[2]: True -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@goog

Newbie: Help with validation

2011-08-09 Thread damola oyeniyi
Hi all, I have a model snippet that I wanna use to store phonenumbers: e_mail = models.EmailField()     phone = models.CharField(max_length=15) Mobile numbers in my country are 11digit numbers e.g 080, Fixed Lines: (2 digit),7 digit e.g (01)755 I wanna try and validate this field on