forked from 0x2620/pandora
string layers need facets now
This commit is contained in:
parent
81aa990988
commit
b50bf7a630
1 changed files with 3 additions and 1 deletions
|
@ -946,7 +946,9 @@ class Item(models.Model):
|
||||||
|
|
||||||
def update_layer_facets(self):
|
def update_layer_facets(self):
|
||||||
for k in settings.CONFIG['itemKeys']:
|
for k in settings.CONFIG['itemKeys']:
|
||||||
if k.get('filter') and k['type'] == 'layer':
|
if k['type'] == 'layer' and (
|
||||||
|
k.get('filter') or \
|
||||||
|
utils.get_by_id(settings.CONFIG['layers'], k['id']).get('type') == 'string'):
|
||||||
self.update_layer_facet(k['id'])
|
self.update_layer_facet(k['id'])
|
||||||
|
|
||||||
def update_facets(self):
|
def update_facets(self):
|
||||||
|
|
Loading…
Reference in a new issue