Fixed EmptyResultSet error after none() method in queryset. Closes #124
Fixed EmptyResultSet error after none() method in queryset. Closes #124

The patch in "SalesforceQuerySet.iterator" imitates
 "django.db.models.sql.compiler.SQLCompiler" that does the same for normal
backends, but in 1 method instead of 3 nested layers.
We have no more similar hooks for this (in Django 1.8):

  django/db/models/query.py(254) QuerySet.iterator()
-> for row in compiler.results_iter():
  django/db/models/sql/compiler.py(783) SQLCompiler.results_iter()
-> for rows in self.execute_sql(MULTI):
> django/db/models/sql/compiler.py(821) SQLCompiler.execute_sql()
  except EmptyResultSet:

philchristensen/django-salesforce,django-salesforce/django-salesforce,chromakey/django-salesforce,django-salesforce/django-salesforce,philchristensen/django-salesforce,django-salesforce/django-salesforce,chromakey/django-salesforce,chromakey/django-salesforce,hynekcer/django-salesforce,philchristensen/django-salesforce,hynekcer/django-salesforce,hynekcer/django-salesforce