django报MultipleObjectsReturned错误

运行django时bao报如下

App.models.MultipleObjectsReturned: get() returned more than one Student -- it returned 7!

原因:应该是使用返回一条对象的过滤方法,但过滤条件得到了很多数据

猜你喜欢

转载自blog.csdn.net/chen1042246612/article/details/84101945