{"action":"created","issue":{"url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/1278","repository_url":"https://api.github.com/repos/MongoEngine/mongoengine","labels_url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/1278/labels{/name}","comments_url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/1278/comments","events_url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/1278/events","html_url":"https://github.com/MongoEngine/mongoengine/issues/1278","id":146991790,"number":1278,"title":"Attribute Error when building nested index for DictField in DynamicDocument","user":{"login":"vahana","id":1245065,"avatar_url":"https://avatars.githubusercontent.com/u/1245065?v=3","gravatar_id":"","url":"https://api.github.com/users/vahana","html_url":"https://github.com/vahana","followers_url":"https://api.github.com/users/vahana/followers","following_url":"https://api.github.com/users/vahana/following{/other_user}","gists_url":"https://api.github.com/users/vahana/gists{/gist_id}","starred_url":"https://api.github.com/users/vahana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vahana/subscriptions","organizations_url":"https://api.github.com/users/vahana/orgs","repos_url":"https://api.github.com/users/vahana/repos","events_url":"https://api.github.com/users/vahana/events{/privacy}","received_events_url":"https://api.github.com/users/vahana/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MongoEngine/mongoengine/labels/Bug","name":"Bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-04-08T17:39:29Z","updated_at":"2016-06-15T17:30:44Z","closed_at":null,"body":"pymongo==3.2.2\r\nmongoengine==0.10.6\r\n\r\n    class ABC(DynamicDocument):\r\n\r\n      meta = {\r\n        'indexes':[\r\n            'nested.a',\r\n            'nested.b'\r\n        ]\r\n      }\r\n      nested = mongo.DictField()\r\n\r\n\r\nThis fails with:\r\n\r\n`AttributeError: 'DictField' object has no attribute 'document_type'`\r\n\r\n\r\nHowever if base class is just Document, it seems to be working.\r\n\r\nAlso this used to work for \r\nmongoengine==0.8.7\r\npymongo==2.8\r\n"},"comment":{"url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/comments/226260261","html_url":"https://github.com/MongoEngine/mongoengine/issues/1278#issuecomment-226260261","issue_url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/1278","id":226260261,"user":{"login":"vahana","id":1245065,"avatar_url":"https://avatars.githubusercontent.com/u/1245065?v=3","gravatar_id":"","url":"https://api.github.com/users/vahana","html_url":"https://github.com/vahana","followers_url":"https://api.github.com/users/vahana/followers","following_url":"https://api.github.com/users/vahana/following{/other_user}","gists_url":"https://api.github.com/users/vahana/gists{/gist_id}","starred_url":"https://api.github.com/users/vahana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vahana/subscriptions","organizations_url":"https://api.github.com/users/vahana/orgs","repos_url":"https://api.github.com/users/vahana/repos","events_url":"https://api.github.com/users/vahana/events{/privacy}","received_events_url":"https://api.github.com/users/vahana/received_events","type":"User","site_admin":false},"created_at":"2016-06-15T17:30:44Z","updated_at":"2016-06-15T17:30:44Z","body":"I will post a PR. its a 1 line change\n\n> On Jun 15, 2016, at 1:29 PM, Christopher Spears <notifications@github.com> wrote:\n> \n> Thanks for your reply! Still waiting to hear back from my company to see if I am allowed to submit a PR. I'll go bug them again.\n> \n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub <https://github.com/MongoEngine/mongoengine/issues/1278#issuecomment-226259745>, or mute the thread <https://github.com/notifications/unsubscribe/ABL_iTzVkakOYE5sQdTi0DL2SqsX_A2eks5qMDZegaJpZM4IDN6H>.\n> \n\n"}}
{"actor":{"display_login":"vahana"}}