diff --git a/apis_core/core/templatetags/apiscore.py b/apis_core/core/templatetags/apiscore.py index 6e0ae1f2f..6343be235 100644 --- a/apis_core/core/templatetags/apiscore.py +++ b/apis_core/core/templatetags/apiscore.py @@ -18,3 +18,8 @@ def page_range(paginator, number): @register.filter def opts(obj): return obj._meta + + +@register.filter +def model_meta(content_type, field): + return getattr(content_type.model_class()._meta, field)