diff --git a/pandora/place/models.py b/pandora/place/models.py index 5dcc48eb..e50e2ec8 100644 --- a/pandora/place/models.py +++ b/pandora/place/models.py @@ -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) diff --git a/pandora/place/views.py b/pandora/place/views.py index 4fc5cd2e..6a02ab7d 100644 --- a/pandora/place/views.py +++ b/pandora/place/views.py @@ -32,6 +32,7 @@ def addPlace(request): lat: float, lng: float, area: float, + type: "" } ''' data = json.loads(request.POST['data'])