diff --git a/CHANGES_BC.rst b/CHANGES_BC.rst index 6d209570c9..3d12821ee3 100644 --- a/CHANGES_BC.rst +++ b/CHANGES_BC.rst @@ -2,3 +2,4 @@ - Update source column matching to be additive and not exclusive. - Add two columns to show the number of documents per workflow and workflow state. +- Sort module. diff --git a/mayan/apps/navigation/templatetags/navigation_tags.py b/mayan/apps/navigation/templatetags/navigation_tags.py index 8822771d49..b31fbc449c 100644 --- a/mayan/apps/navigation/templatetags/navigation_tags.py +++ b/mayan/apps/navigation/templatetags/navigation_tags.py @@ -113,12 +113,6 @@ def navigation_source_column_get_absolute_url(source_column, obj): return source_column.get_absolute_url(obj=obj) -@register.simple_tag(takes_context=True) -def resolve_link(context, link): - # This can be used to resolve links or menus too - return link.resolve(context=context) - - @register.simple_tag(takes_context=True) def navigation_source_column_resolve(context, column): if column: @@ -126,3 +120,10 @@ def navigation_source_column_resolve(context, column): return result else: return '' + + +@register.simple_tag(takes_context=True) +def resolve_link(context, link): + # This can be used to resolve links or menus too + return link.resolve(context=context) +