From d623cb2df5ed38cafee5a2cb0dc25cf545b96dd0 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Mon, 24 Jun 2019 23:04:49 -0400 Subject: [PATCH] Sort function Signed-off-by: Roberto Rosario --- CHANGES_BC.rst | 1 + .../apps/navigation/templatetags/navigation_tags.py | 13 +++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) 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) +