From 18a8ee8b490dee843fa6c72c710a74e9ae7afab2 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 5 Jun 2019 12:53:54 +0200 Subject: QA: fix bad QA indexing - tests --- ishtar_common/models.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 1c841a984..d8cc862f6 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -2403,6 +2403,12 @@ class MainItem(ShortMenuItem): action.target or ""]) return qas + @classmethod + def get_quick_action_by_url(cls, url): + for action in cls.QUICK_ACTIONS: + if action.url == url: + return action + class LightHistorizedItem(BaseHistorizedItem): history_date = models.DateTimeField(default=datetime.datetime.now) -- cgit v1.2.3