From ae8a444e4297264ddcf626a74b08822768b07028 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sun, 28 Apr 2019 02:21:35 -0400 Subject: [PATCH] Allow source columns without an attribute Signed-off-by: Roberto Rosario --- mayan/apps/navigation/classes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mayan/apps/navigation/classes.py b/mayan/apps/navigation/classes.py index 82303fed82..714f560dc1 100644 --- a/mayan/apps/navigation/classes.py +++ b/mayan/apps/navigation/classes.py @@ -721,6 +721,8 @@ class SourceColumn(object): ) elif self.func: result = self.func(context=context, **self.kwargs) + else: + result = context['object'] if self.widget: widget_instance = self.widget()