diff --git a/massadmin/massadmin.py b/massadmin/massadmin.py index 4eb51db..dfa3a44 100644 --- a/massadmin/massadmin.py +++ b/massadmin/massadmin.py @@ -123,7 +123,7 @@ def __init__(self, model, admin_site): raise Exception('Model not registered with the admin site.') for (varname, var) in self.get_overrided_properties().items(): - if not varname.startswith('_') and not isinstance(var, types.FunctionType): + if not varname.startswith('_') and not callable(var): self.__dict__[varname] = var super(MassAdmin, self).__init__(model, admin_site)