diff --git a/smartmin/views.py b/smartmin/views.py index 88382b9..1f2a69e 100644 --- a/smartmin/views.py +++ b/smartmin/views.py @@ -141,6 +141,10 @@ def lookup_obj_attribute(self, obj, field): # next up is the object itself obj_field = getattr(obj, curr_field, None) + # if it is callable, do so + if obj_field and getattr(obj_field, '__call__', None): + obj_field = obj_field() + if obj_field and rest: return self.lookup_obj_attribute(obj_field, rest) else: