Allow source columns without an attribute

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-04-28 02:21:35 -04:00
parent e01017ffe5
commit ae8a444e42

View File

@@ -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()