flask admin : sqlalchemy.exc.InterfaceError(Error binding parameter 8)

前端 未结 1 863
眼角桃花
眼角桃花 2020-12-22 13:27

I was trying to save a project\'s reviewer using below, and the select field shows correct:

# Query the user with Role.id == 4 as reviewer
def reviewer_choic         


        
相关标签:
1条回答
  • 2020-12-22 14:01

    It's obviously. The reviewer is a string defined in Project. You can define a __repr__ function in User model to return a string(name of user or something else). Check this question.

    0 讨论(0)
提交回复
热议问题