Sort function
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -2,3 +2,4 @@
|
|||||||
- Update source column matching to be additive and not exclusive.
|
- Update source column matching to be additive and not exclusive.
|
||||||
- Add two columns to show the number of documents per workflow and
|
- Add two columns to show the number of documents per workflow and
|
||||||
workflow state.
|
workflow state.
|
||||||
|
- Sort module.
|
||||||
|
|||||||
@@ -113,12 +113,6 @@ def navigation_source_column_get_absolute_url(source_column, obj):
|
|||||||
return source_column.get_absolute_url(obj=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)
|
@register.simple_tag(takes_context=True)
|
||||||
def navigation_source_column_resolve(context, column):
|
def navigation_source_column_resolve(context, column):
|
||||||
if column:
|
if column:
|
||||||
@@ -126,3 +120,10 @@ def navigation_source_column_resolve(context, column):
|
|||||||
return result
|
return result
|
||||||
else:
|
else:
|
||||||
return ''
|
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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user