FloatField

Brightcells 7 years ago
parent
commit
340b18cdf2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      mch/models.py

+ 2 - 2
mch/models.py

@@ -198,8 +198,8 @@ class ConsumeInfoSubmitLogInfo(BaseModelMixin):
198 198
     iv = models.CharField(_(u'iv'), max_length=11, blank=True, null=True, help_text=u'iv')
199 199
     encryptedData = models.CharField(_(u'encryptedData'), max_length=11, blank=True, null=True, help_text=u'encryptedData')
200 200
 
201
-    lat = models.IntegerField(_(u'lat'), default=1.0, help_text=u'纬度')
202
-    lon = models.IntegerField(_(u'lon'), default=1.0, help_text=u'经度')
201
+    lat = models.FloatField(_(u'lat'), default=1.0, help_text=u'纬度')
202
+    lon = models.FloatField(_(u'lon'), default=1.0, help_text=u'经度')
203 203
 
204 204
     serialNo = models.CharField(_(u'serialNo'), max_length=16, blank=True, null=True, help_text=u'序列号', db_index=True)
205 205