diff --git a/pandora/place/models.py b/pandora/place/models.py index 26a1a839..c2fc9dbb 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 c1e3601c..d6d065e7 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);