From b50bf7a630c8176701f0507753715eec55391251 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 9 Feb 2014 09:58:13 +0000 Subject: [PATCH] string layers need facets now --- pandora/item/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index 32fd4395..39b36838 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -946,7 +946,9 @@ class Item(models.Model): def update_layer_facets(self): 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']) def update_facets(self):