{"action":"created","issue":{"url":"https://api.github.com/repos/vandersonmota/model_mommy/issues/232","labels_url":"https://api.github.com/repos/vandersonmota/model_mommy/issues/232/labels{/name}","comments_url":"https://api.github.com/repos/vandersonmota/model_mommy/issues/232/comments","events_url":"https://api.github.com/repos/vandersonmota/model_mommy/issues/232/events","html_url":"https://github.com/vandersonmota/model_mommy/pull/232","id":84620098,"number":232,"title":"Fix generating models which have a 'next' method, but aren't iterators","user":{"login":"syphar","id":540890,"avatar_url":"https://avatars.githubusercontent.com/u/540890?v=3","gravatar_id":"","url":"https://api.github.com/users/syphar","html_url":"https://github.com/syphar","followers_url":"https://api.github.com/users/syphar/followers","following_url":"https://api.github.com/users/syphar/following{/other_user}","gists_url":"https://api.github.com/users/syphar/gists{/gist_id}","starred_url":"https://api.github.com/users/syphar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syphar/subscriptions","organizations_url":"https://api.github.com/users/syphar/orgs","repos_url":"https://api.github.com/users/syphar/repos","events_url":"https://api.github.com/users/syphar/events{/privacy}","received_events_url":"https://api.github.com/users/syphar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-03T15:25:40Z","updated_at":"2015-06-03T18:25:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/vandersonmota/model_mommy/pulls/232","html_url":"https://github.com/vandersonmota/model_mommy/pull/232","diff_url":"https://github.com/vandersonmota/model_mommy/pull/232.diff","patch_url":"https://github.com/vandersonmota/model_mommy/pull/232.patch"},"body":"we stumpled on this because one of our models has a method called `next` (from `django-orderable`) which lead to mommy assigning `None` to this attribute. \r\n\r\nI changed the method to find out if a thing is an iterable. "},"comment":{"url":"https://api.github.com/repos/vandersonmota/model_mommy/issues/comments/108560823","html_url":"https://github.com/vandersonmota/model_mommy/pull/232#issuecomment-108560823","issue_url":"https://api.github.com/repos/vandersonmota/model_mommy/issues/232","id":108560823,"user":{"login":"berinhard","id":238223,"avatar_url":"https://avatars.githubusercontent.com/u/238223?v=3","gravatar_id":"","url":"https://api.github.com/users/berinhard","html_url":"https://github.com/berinhard","followers_url":"https://api.github.com/users/berinhard/followers","following_url":"https://api.github.com/users/berinhard/following{/other_user}","gists_url":"https://api.github.com/users/berinhard/gists{/gist_id}","starred_url":"https://api.github.com/users/berinhard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berinhard/subscriptions","organizations_url":"https://api.github.com/users/berinhard/orgs","repos_url":"https://api.github.com/users/berinhard/repos","events_url":"https://api.github.com/users/berinhard/events{/privacy}","received_events_url":"https://api.github.com/users/berinhard/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T18:25:43Z","updated_at":"2015-06-03T18:25:43Z","body":"@syphar i think you could add a test to reproduce the error so it wouldn't happen again"}}