string layers need facets now

This commit is contained in:
j 2014-02-09 09:58:13 +00:00
parent 81aa990988
commit b50bf7a630

View file

@ -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):