document type, set default to ''

This commit is contained in:
j 2011-05-30 13:23:49 +02:00
parent 32cd55866a
commit d66393ac0e
2 changed files with 2 additions and 1 deletions

View file

@ -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)

View file

@ -32,6 +32,7 @@ def addPlace(request):
lat: float,
lng: float,
area: float,
type: ""
}
'''
data = json.loads(request.POST['data'])