From e316d107a5c1b0eeb04bf83078c73d27d7abf2ec 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 5dcc48eb1..e50e2ec84 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 4fc5cd2ea..6a02ab7db 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'])