{"issue":{"state":"closed","pull_request":{"diff_url":"https://github.com/hmarr/mongoengine/pull/306.diff","html_url":"https://github.com/hmarr/mongoengine/pull/306","patch_url":"https://github.com/hmarr/mongoengine/pull/306.patch"},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/5070c55d61f0cbcad7237c3add7242d1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5070c55d61f0cbcad7237c3add7242d1","url":"https://api.github.com/users/mjtamlyn","login":"mjtamlyn","id":389581},"assignee":null,"labels":[],"updated_at":"2011-11-01T08:23:19Z","closed_at":"2011-11-01T08:23:19Z","comments":1,"url":"https://api.github.com/repos/hmarr/mongoengine/issues/306","body":"Hi Harry!\r\n\r\nFound a bug in queryset iteration - if an iteration got stopped for some reason (e.g. a break) then when you made a new iterator it started from the point the previous one got stopped. I've added a `self.rewind` into the `__iter__` which fixes it. I'm not completely sure of the speed implications of this, but it didn't break any tests. I've also added a now-passing amendment to the relevant test.\r\n\r\nMarc","html_url":"https://github.com/hmarr/mongoengine/issues/306","number":306,"title":"Fix queryset iteration","id":1823159,"created_at":"2011-10-05T12:33:44Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/630e114bb1f79c0924103b96921227c2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"630e114bb1f79c0924103b96921227c2","url":"https://api.github.com/users/rozza","login":"rozza","id":420},"updated_at":"2011-11-01T08:23:19Z","url":"https://api.github.com/repos/hmarr/mongoengine/issues/comments/2587879","body":"Thanks for the patch @mjtamlyn - this has been merged into the dev branch! aa9ed614ada02fecbe09c0a6488da9177a343900","id":2587879,"created_at":"2011-11-01T08:23:19Z"}}