From 5dbd3030d1e983a63812dfe32f6951d977496fbc Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Thu, 22 Feb 2024 12:34:24 +0000 Subject: [PATCH] remove unused template tag (#6553) --- InvenTree/InvenTree/templatetags/inventree_extras.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/InvenTree/InvenTree/templatetags/inventree_extras.py b/InvenTree/InvenTree/templatetags/inventree_extras.py index c7bb9f4162..aa67af3fef 100644 --- a/InvenTree/InvenTree/templatetags/inventree_extras.py +++ b/InvenTree/InvenTree/templatetags/inventree_extras.py @@ -506,17 +506,6 @@ def keyvalue(dict, key): return dict.get(key) -@register.simple_tag() -def call_method(obj, method_name, *args): - """Enables calling model methods / functions from templates with arguments. - - Usage: - {% call_method model_object 'fnc_name' argument1 %} - """ - method = getattr(obj, method_name) - return method(*args) - - @register.simple_tag() def authorized_owners(group): """Return authorized owners."""