forked from 0x2620/pandora
document type, set default to ''
This commit is contained in:
parent
7b0773ab6d
commit
e316d107a5
2 changed files with 2 additions and 1 deletions
|
@ -28,7 +28,7 @@ class Place(models.Model):
|
|||
countryCode = models.CharField(max_length=16, default='')
|
||||
|
||||
wikipediaId = models.CharField(max_length=1000, blank=True)
|
||||
type= models.CharField(max_length=1000, blank=True)
|
||||
type = models.CharField(max_length=1000, default='')
|
||||
|
||||
south = models.FloatField(default=0)
|
||||
west = models.FloatField(default=0)
|
||||
|
|
|
@ -32,6 +32,7 @@ def addPlace(request):
|
|||
lat: float,
|
||||
lng: float,
|
||||
area: float,
|
||||
type: ""
|
||||
}
|
||||
'''
|
||||
data = json.loads(request.POST['data'])
|
||||
|
|
Loading…
Reference in a new issue