RE: using a models fields

2011-04-05 Thread Chris Matthews
glegroups.com] On Behalf Of bishwendu kundu Sent: 05 April 2011 02:41 To: django-users@googlegroups.com Subject: Re: using a models fields You can try saving the data as latitude=models.DecimalField(max_digits=7,decimal_places=4).Same for the longitude field.Here the max_digits takes into account

Re: using a models fields

2011-04-04 Thread bishwendu kundu
You can try saving the data as latitude=models.DecimalField(max_digits=7,decimal_places=4).Same for the longitude field.Here the max_digits takes into account both decimal and non-decimal places.All the data can be given in string form as it will be automatically converted to proper format as speci