Allow source columns without an attribute
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user