objects高亮,提示信息为unresolved attribute referene 'objects' for class 'BookInfo'

Django | pycharm 提示 unresolved attribute referene 'objects' for class 'xxxx'

 

 

当前情况是pycharm没有识别到objects,并不会影响程序运行

只需要在BookInfo 模型类中的 字段同一级,加入如下代码,即可

objects = models.Manager()

 

 

相关文章:

  • 2021-12-09
  • 2021-04-18
  • 2021-04-12
  • 2021-08-25
  • 2022-12-23
  • 2021-09-04
  • 2021-08-15
  • 2021-09-22
猜你喜欢
  • 2021-08-08
  • 2022-12-23
  • 2022-12-23
  • 2022-01-06
  • 2021-09-10
  • 2021-07-18
相关资源
相似解决方案