remove unused template tag (#6553)

This commit is contained in:
Matthias Mair 2024-02-22 12:34:24 +00:00 committed by GitHub
parent fdcbb68616
commit 5dbd3030d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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."""