reset more data

This commit is contained in:
j 2012-02-04 14:02:48 +00:00
parent f4ab2539be
commit 43d01b0490
2 changed files with 4 additions and 0 deletions

View file

@ -130,6 +130,9 @@ class Place(models.Model):
self.lat = None self.lat = None
self.lng = None self.lng = None
self.area = None self.area = None
self.type = ''
self.geoname = None
self.geoname_sort = None
def save(self, *args, **kwargs): def save(self, *args, **kwargs):
if not self.name_sort: if not self.name_sort:

View file

@ -48,6 +48,7 @@ pandora.ui.placesDialog = function(options) {
}); });
} : null, } : null,
places: function(data, callback) { places: function(data, callback) {
data.keys && data.keys.push('matches');
return pandora.api.findPlaces(Ox.extend({ return pandora.api.findPlaces(Ox.extend({
query: {conditions: [], operator: ''} query: {conditions: [], operator: ''}
}, data), callback); }, data), callback);