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

using a models fields

2011-04-04 Thread jay K.
Hello, I got a couple of fields from a model I want to use so the models.py looks like this * class XZY(): latitude = models.CharField() longitude = models.CharField(.) zoomlevel = models.CharField()* I want to retrieve the data inside latitude, longitude and zoomlevel to b