From 43d01b0490b6441a1f5769724b9c620ca15c8685 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 4 Feb 2012 14:02:48 +0000 Subject: [PATCH] reset more data --- pandora/place/models.py | 3 +++ static/js/pandora/placesDialog.js | 1 + 2 files changed, 4 insertions(+) diff --git a/pandora/place/models.py b/pandora/place/models.py index 26a1a8395..c2fc9dbb0 100644 --- a/pandora/place/models.py +++ b/pandora/place/models.py @@ -130,6 +130,9 @@ class Place(models.Model): self.lat = None self.lng = None self.area = None + self.type = '' + self.geoname = None + self.geoname_sort = None def save(self, *args, **kwargs): if not self.name_sort: diff --git a/static/js/pandora/placesDialog.js b/static/js/pandora/placesDialog.js index c1e3601cf..d6d065e74 100644 --- a/static/js/pandora/placesDialog.js +++ b/static/js/pandora/placesDialog.js @@ -48,6 +48,7 @@ pandora.ui.placesDialog = function(options) { }); } : null, places: function(data, callback) { + data.keys && data.keys.push('matches'); return pandora.api.findPlaces(Ox.extend({ query: {conditions: [], operator: ''} }, data), callback);