From 0a5159480978acc1c8e0d5d1d2bc68ee153bee4f Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 15 Nov 2019 21:03:41 +0100 Subject: Fix build --- ishtar_common/utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ishtar_common/utils.py') diff --git a/ishtar_common/utils.py b/ishtar_common/utils.py index d828e79cd..641fbd156 100644 --- a/ishtar_common/utils.py +++ b/ishtar_common/utils.py @@ -542,10 +542,8 @@ def regenerate_all_cached_labels(model): cached_label_changed(model, instance=item) -SHORTIFY_STR = ugettext(" (...)") - - def shortify(lbl, number=20): + SHORTIFY_STR = ugettext(" (...)") if not lbl: lbl = '' if len(lbl) <= number: -- cgit v1.2.3