    def get_value(self):
        if self.column.render_function:
            # We don't want to escape our html
            return self.column.render_function(self.object)

        field = getattr(self.object, self.column.field_name) if self.column.field_name else None
        if type(self.object) == dict:
            value = self.object.get(self.column.field_name)
        elif callable(field):
            value = field() if getattr(field, 'do_not_call_in_templates', False) else field
        else:
            display_function = getattr(self.object, 'get_%s_display' % self.column.field_name, False)
            value = display_function() if display_function else field

        return escape(value)
    def get_value(self):
        field = getattr(self.object, self.column.field_name) if self.column.field_name else None
        if self.column.render_function:
            template = self.column.render_function(self.object)
            if not self.is_template_instance(template):
                raise SmartListException(
                    'Your render_function {} should return django.template.Template or django.template.backends.django.Template object instead of {}'.format(
                        self.column.render_function.__name__,
                        type(template),
                    )
                )
            value = template.render()
        elif type(self.object) == dict:
            value = self.object.get(self.column.field_name)
        elif callable(field):
            value = field() if getattr(field, 'do_not_call_in_templates', False) else field
        else:
            display_function = getattr(self.object, 'get_%s_display' % self.column.field_name, False)
            value = display_function() if display_function else field

        return value
        if self.column.render_function:

            return self.column.render_function(self.object)

        if type(self.object) == dict:

        return escape(value)

        if self.column.render_function:

            template = self.column.render_function(self.object)

            if not self.is_template_instance(template):

                raise SmartListException(

                    'Your render_function {} should return django.template.Template or django.template.backends.django.Template object instead of {}'.format(

                        self.column.render_function.__name__,

                        type(template),

                    )

                )

            value = template.render()

        elif type(self.object) == dict:

        return value

r
d
r_
ct
o
:
  
#
W
 d
't wa
t to 
s
ape 
ur html
r
urn
d = g
(
lf.obj
c
,
s
l
.
m
fi
_
)
eld
s
No
escape(
)
f
eld = getattr(sel
.object,
fi
l
name) i
 self.col
m
.f
eld_name else N
e
if
s
lf.c
lum
.r
nd
r_f
nc
ion:
t
mpla
e =
i
 not self.
s_t
mp
at
_ins
nce(
empla
e):
                
ai
 SmartListException(
                    'Y
ur r
nder_fun
ion {}
hould r
turn djang
.temp
ate.Te
plate or dja
go
t
mp
ate.backen
s.dja
go.Te
plat
 object
nstead o
{}'.format(
                        
r
n
er_function._
__,
                
       type(t
mp
at
),
    
               )
                )
            value = template.re
d
r()
el