I develop an application using Flask. I use Postgres db (psycop2), SQLAlchemy and Flask-Admin for admin interface. And I got a problem and can't find a solution. I have many-to-many relationship between articles and tags tables it's clear. In the Flask-Admin interface when I try to add a tag to articel (or vise versa) it works fine. But it displays awfully and it impossible to choose correct tag because it displays like an object:
And that is right because it is an instance of my model class. But how can I display here only a value of single field from that model? I really don't know how to do that. Is there any parameter for such kind of "form field" in the admin interface? I can find nothing. I hope that sombody know the solution.
Thanks for your help!
__unicode__
defined on the model ? – Turnstone