From d66393ac0ef2f5bcf611c3403ea93097ef00171c Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 30 May 2011 13:23:49 +0200 Subject: [PATCH] document type, set default to '' --- pandora/place/models.py | 2 +- pandora/place/views.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora/place/models.py b/pandora/place/models.py index 5dcc48e..e50e2ec 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 4fc5cd2..6a02ab7 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'])