《Web接口開發與自動化測試》
若在實現簽到功能中把Guest.objects.get(phone=phone, event_id=eid)改為filter就會出現圖2錯誤
原因p61:table.objects.get()返回一個對象,而table.objects.filter()返回一個對象列表
錯誤提示也已經說的很明白了:‘QuerySet’对象没有属性’sign’
Django:'QuerySet' object has no attribute 'sign'
最新推荐文章于 2024-05-31 17:32:17 发布