Flask-Admin Many-to-Many field display

后端 未结 2 1203
半阙折子戏
半阙折子戏 2021-01-01 06:31

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 man

2条回答
  •  自闭症患者
    2021-01-01 07:19

    Adding this for people like me that stumble upon this answer, it didn't work for me, but

    def __str__(self):
        return self.name
    

    worked just fine ;)

提交回复
热议问题