forked from 0x2620/pandora
reset more data
This commit is contained in:
parent
f4ab2539be
commit
43d01b0490
2 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue