{"action":"created","issue":{"url":"https://api.github.com/repos/rbarrois/factory_boy/issues/186","labels_url":"https://api.github.com/repos/rbarrois/factory_boy/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/rbarrois/factory_boy/issues/186/comments","events_url":"https://api.github.com/repos/rbarrois/factory_boy/issues/186/events","html_url":"https://github.com/rbarrois/factory_boy/issues/186","id":58376498,"number":186,"title":"importing MongoEngineFactory is weird","user":{"login":"dustinfarris","id":1087165,"avatar_url":"https://avatars.githubusercontent.com/u/1087165?v=3","gravatar_id":"","url":"https://api.github.com/users/dustinfarris","html_url":"https://github.com/dustinfarris","followers_url":"https://api.github.com/users/dustinfarris/followers","following_url":"https://api.github.com/users/dustinfarris/following{/other_user}","gists_url":"https://api.github.com/users/dustinfarris/gists{/gist_id}","starred_url":"https://api.github.com/users/dustinfarris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dustinfarris/subscriptions","organizations_url":"https://api.github.com/users/dustinfarris/orgs","repos_url":"https://api.github.com/users/dustinfarris/repos","events_url":"https://api.github.com/users/dustinfarris/events{/privacy}","received_events_url":"https://api.github.com/users/dustinfarris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-20T16:33:50Z","updated_at":"2015-03-04T09:07:37Z","closed_at":null,"body":"Following the style of other factories, I have:\r\n\r\n```python\r\nimport factory\r\n\r\n\r\nclass MyModelFactory(factory.mongoengine.MongoEngineFactory):\r\n    \r\n    class Meta:\r\n        model = 'myapp.MyModel'\r\n```\r\n\r\nbut this throws an import error:\r\n\r\n```\r\nAttributeError: 'module' object has no attribute 'mongoengine'\r\n```\r\n\r\nhowever, this works:\r\n\r\n```python\r\nfrom factory.mongoengine import MongoEngineFactory\r\n\r\n\r\nclass MyModelFactory(MongoEngineFactory):\r\n    \r\n    class Meta:\r\n        model = 'myapp.MyModel'\r\n```"},"comment":{"url":"https://api.github.com/repos/rbarrois/factory_boy/issues/comments/77120380","html_url":"https://github.com/rbarrois/factory_boy/issues/186#issuecomment-77120380","issue_url":"https://api.github.com/repos/rbarrois/factory_boy/issues/186","id":77120380,"user":{"login":"rbarrois","id":694541,"avatar_url":"https://avatars.githubusercontent.com/u/694541?v=3","gravatar_id":"","url":"https://api.github.com/users/rbarrois","html_url":"https://github.com/rbarrois","followers_url":"https://api.github.com/users/rbarrois/followers","following_url":"https://api.github.com/users/rbarrois/following{/other_user}","gists_url":"https://api.github.com/users/rbarrois/gists{/gist_id}","starred_url":"https://api.github.com/users/rbarrois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbarrois/subscriptions","organizations_url":"https://api.github.com/users/rbarrois/orgs","repos_url":"https://api.github.com/users/rbarrois/repos","events_url":"https://api.github.com/users/rbarrois/events{/privacy}","received_events_url":"https://api.github.com/users/rbarrois/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T09:07:37Z","updated_at":"2015-03-04T09:07:37Z","body":"That's indeed a good point.\r\n\r\nI'll look into it."}}