Re: Phone number field in form/ model

2016-12-15 Thread John Fabiani
django-phonenumber-field is expecting a charfield and not a int. Johnf On Thu, Dec 15, 2016 at 5:12 AM, Deep Shah wrote: > I have not tried this out but you can check this- > > https://github.com/stefanfoulis/django-phonenumber-field/ > > > > On Thursday, December 15, 2016 at 1:07:02 AM UTC+5:30

Re: Phone number field in form/ model

2016-12-15 Thread Deep Shah
I have not tried this out but you can check this- https://github.com/stefanfoulis/django-phonenumber-field/ On Thursday, December 15, 2016 at 1:07:02 AM UTC+5:30, Lloyd Dube wrote: > > Hi, > > Has anyone captured phone number information using a Form/ModelForm > instance? I have the field as

Re: Phone number field in form/ model

2016-12-14 Thread Sithembewena Lloyd Dube
Thanks guys! On Wed, Dec 14, 2016 at 9:47 PM, Michal Petrucha < michal.petru...@konk.org> wrote: > On Wed, Dec 14, 2016 at 09:36:06PM +0200, Sithembewena Lloyd Dube wrote: > > Hi, > > > > Has anyone captured phone number information using a Form/ModelForm > > instance? I have the field as an

Re: Phone number field in form/ model

2016-12-14 Thread Michal Petrucha
On Wed, Dec 14, 2016 at 09:36:06PM +0200, Sithembewena Lloyd Dube wrote: > Hi, > > Has anyone captured phone number information using a Form/ModelForm > instance? I have the field as an IntegerField in my model and (for obvious > reasons) it truncates the leading '0'. How have you solved this prob

Re: Phone number field in form/ model

2016-12-14 Thread Fabio C. Barrionuevo da Luz
Use CharField and try to find on https://django-localflavor.readthedocs.io/en/latest/ a Phone form Field for valid to you country or create Or create your own PhoneFormField with the validation rules that you need Implementation example: https://github.com/django/django-localflavor/blob/master/lo

Phone number field in form/ model

2016-12-14 Thread Sithembewena Lloyd Dube
Hi, Has anyone captured phone number information using a Form/ModelForm instance? I have the field as an IntegerField in my model and (for obvious reasons) it truncates the leading '0'. How have you solved this problem, anyone? -- Regards, Sithembewena -- You received this message because you