SyrusAkbary/Flask-SuperAdmin — pull request #24 by wojcikstefan (2013-03-14 08:11:49+00:00)
Title: Support passing methods to list_display for MongoEngine

Imagine having a simple MongoEngine document and a model admin:

```
class User(Document):
email = StringField(required=True)
first_name = StringField(max_length=50)
last_name = StringField(max_length=50)

def get_full_name(self):
return '%s %s' % (self.first_name, self.last_name)

class TestAdmin(model.ModelAdmin):
list_display = ['get_full_name']
```

It would show `>` in the list. This pull request fixes it, by checking if an attribute is callable.