pymodm不能识别mod的对象

2024-10-02 00:30:41 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经开始在我的项目(https://github.com/ypriverol/biocontainers-backend/blob/master/biocontainers/common/models.py)中使用pymodm。所有的积垢处理都很好。你知道吗

但是,当我尝试使用objects调用检索特定MongoModel的对象列表时:

    tool_versions_dic = MongoToolVersion.objects.all()

我有个错误:

    AttributeError: type object 'MongoToolVersion' has no attribute 'objects'

Tags: 项目pyhttpsgithubmastercombackendobjects

热门问题