How can I tell flask-admin to use an alternative representation for Foreign Key Fields such as the following in this RoleUser link table?
The simplest way is to add __str__ methods (__unicode__ for Python 2) to your models.
__str__
__unicode__
class Role(db.Model): # snip def __str__(self): return self.name
2.1m questions
2.1m answers
60 comments
57.0k users