{"action":"created","issue":{"url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/1924","repository_url":"https://api.github.com/repos/MongoEngine/mongoengine","labels_url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/1924/labels{/name}","comments_url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/1924/comments","events_url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/1924/events","html_url":"https://github.com/MongoEngine/mongoengine/issues/1924","id":371255649,"node_id":"MDU6SXNzdWUzNzEyNTU2NDk=","number":1924,"title":"Find documents of class and subclasses","user":{"login":"tulaeff","id":43848297,"node_id":"MDQ6VXNlcjQzODQ4Mjk3","avatar_url":"https://avatars2.githubusercontent.com/u/43848297?v=4","gravatar_id":"","url":"https://api.github.com/users/tulaeff","html_url":"https://github.com/tulaeff","followers_url":"https://api.github.com/users/tulaeff/followers","following_url":"https://api.github.com/users/tulaeff/following{/other_user}","gists_url":"https://api.github.com/users/tulaeff/gists{/gist_id}","starred_url":"https://api.github.com/users/tulaeff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tulaeff/subscriptions","organizations_url":"https://api.github.com/users/tulaeff/orgs","repos_url":"https://api.github.com/users/tulaeff/repos","events_url":"https://api.github.com/users/tulaeff/events{/privacy}","received_events_url":"https://api.github.com/users/tulaeff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-17T20:33:43Z","updated_at":"2018-10-17T22:03:18Z","closed_at":null,"author_association":"NONE","body":"Please, help me.\r\n```\r\nclass Subject(DynamicDocument):\r\n    meta = { 'collection': 'subjects', 'allow_inheritance': True }\r\n    type = StringField(default='foobar')\r\n\r\nclass FooSubject(Subject):\r\n    type = StringField(default='foo')\r\n\r\nclass BarSubject(Subject):\r\n    type = StringField(default='bar')\r\n```\r\nwhen I write this:\r\n```\r\nsubjects = Subject.objects()\r\n```\r\nit returns documents where `'_cls' == 'Subject'` only. And how I can get all documents from collection `subjects`?\r\n\r\nP.S. Sorry for my English"},"comment":{"url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/comments/430805728","html_url":"https://github.com/MongoEngine/mongoengine/issues/1924#issuecomment-430805728","issue_url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/1924","id":430805728,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDgwNTcyOA==","user":{"login":"tulaeff","id":43848297,"node_id":"MDQ6VXNlcjQzODQ4Mjk3","avatar_url":"https://avatars2.githubusercontent.com/u/43848297?v=4","gravatar_id":"","url":"https://api.github.com/users/tulaeff","html_url":"https://github.com/tulaeff","followers_url":"https://api.github.com/users/tulaeff/followers","following_url":"https://api.github.com/users/tulaeff/following{/other_user}","gists_url":"https://api.github.com/users/tulaeff/gists{/gist_id}","starred_url":"https://api.github.com/users/tulaeff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tulaeff/subscriptions","organizations_url":"https://api.github.com/users/tulaeff/orgs","repos_url":"https://api.github.com/users/tulaeff/repos","events_url":"https://api.github.com/users/tulaeff/events{/privacy}","received_events_url":"https://api.github.com/users/tulaeff/received_events","type":"User","site_admin":false},"created_at":"2018-10-17T22:03:18Z","updated_at":"2018-10-17T22:03:18Z","author_association":"NONE","body":"> this might just be a transcription error, but presumably you want:\r\n> \r\n> ```python\r\n> class FooSubject(Subject):\r\n> ```\r\n> \r\n> rather than:\r\n> \r\n> ```python\r\n> class FooSubject(subject):\r\n> ```\r\n\r\nYes, of course, thanks. I corrected my question. Thank you very much!"}}
{"actor":{"display_login":"tulaeff"}}