summaryrefslogtreecommitdiff
path: root/ishtar_common
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common')
-rw-r--r--ishtar_common/views.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ishtar_common/views.py b/ishtar_common/views.py
index 396f31a6f..e445cb44d 100644
--- a/ishtar_common/views.py
+++ b/ishtar_common/views.py
@@ -2241,7 +2241,10 @@ class AlertList(JSONResponseMixin, LoginRequiredMixin,
model = sq.content_type.model_class()
module = model.__module__.split('.')[0]
views = importlib.import_module(module + '.views')
- get_view = getattr(views, "get_" + model.SLUG)
+ try:
+ get_view = getattr(views, "get_" + model.SLUG)
+ except AttributeError:
+ continue
nb = get_view(
self.request,
query={'search_vector': sq.query},