0

I have started using pymodm in my project (https://github.com/ypriverol/biocontainers-backend/blob/master/biocontainers/common/models.py). All CRUD operations work very well.

However, when I try to retrieve the list of objects for a specific MongoModel using the objects call:

    tool_versions_dic = MongoToolVersion.objects.all()

I got this error:

    AttributeError: type object 'MongoToolVersion' has no attribute 'objects'
ypriverol
  • 585
  • 2
  • 8
  • 28
  • Is this command working? `MongoToolVersion.manager.mongo_all_tool_versions()` – Evhz Nov 17 '18 at 13:57
  • you mean this line: https://github.com/ypriverol/biocontainers-backend/blob/master/biocontainers/common/models.py#L89 . Yes it works. I'm new to pymodm and python in general. Sorry if the question is obvious – ypriverol Nov 17 '18 at 14:03
  • Probably, i dint explain we’ll. the manager call works. But the objects.all() not. Why? – ypriverol Nov 17 '18 at 15:22

0 Answers0