title: Missing object in queryset
body: <p>I have a model:</p>
  
  <pre><code>class Post(models.Model):
      is_active = models.BooleanField()
      created = models.DateTimeField()
  </code></pre>
  
  <p>And two CBVs: PostListView и PostDetailView.</p>
  
  <pre><code>queryset = Post.objects.filter(is_active=True, created__lt=timezone.now())
  </code></pre>
  
  <p>In both cases.</p>
  
  <p>Problem: every 2nd PostListView rendering response without one Post instance with <code>created=datetime.datetime(2014, 5, 29, 13, 40, tzinfo=&lt;UTC&gt;)</code>. PostDetailView returning 404 (every 2nd response!). Its allright, when Im trying to reproduce bug in shell:</p>
  
  <pre><code>&gt;&gt;&gt; Post.objects.filter(is_active=True, created__lte=timezone.now())
  [&lt;Post: 1&gt;, &lt;Post: 2&gt;]
  &gt;&gt;&gt; Post.objects.filter(is_active=True, created__lte=timezone.now())
  [&lt;Post: 1&gt;, &lt;Post: 2&gt;]
  &gt;&gt;&gt; Post.objects.filter(is_active=True, created__lte=timezone.now())
  [&lt;Post: 1&gt;, &lt;Post: 2&gt;]
  &gt;&gt;&gt; Post.objects.filter(is_active=True, created__lte=timezone.now())
  [&lt;Post: 1&gt;, &lt;Post: 2&gt;]
  </code></pre>
  
  <p><strong>Update</strong>:</p>
  
  <pre><code>class PostListView(ListView):
      queryset = Post.objects.filter(is_active=True, created__lt=timezone.now())
      context_object_name = 'posts'
  
      def get_context_data(self, **kwargs):
          context = super(PostListView, self).get_context_data(**kwargs)
          context['recommended'] = self.get_queryset().filter(is_recommended=True)[:5]
          return context
  
  
  class PostDetailView(DetailView):
      queryset = Post.objects.filter(is_active=True, created__lt=timezone.now())
      context_object_name = 'post'
  
      def get_context_data(self, **kwargs):
          context = super(PostDetailView, self).get_context_data(**kwargs)
          context['recommended'] = self.get_queryset().filter(is_recommended=True)[:5]
          return context
  
  
  print self.get_queryset().query
  SELECT `blog_post`.`id`, `blog_post`.`title`, `blog_post`.`slug`, `blog_post`.`meta_description`, `blog_post`.`img`, `blog_post`.`announcement`, `blog_post`.`content`, `blog_post`.`author_id`, `blog_post`.`is_innovation`, `blog_post`.`is_recommended`, `blog_post`.`is_active`, `blog_post`.`created` FROM `blog_post` WHERE (`blog_post`.`created` &lt; 2014-06-04 15:02:44  AND `blog_post`.`is_active` = True ) ORDER BY `blog_post`.`created` DESC
  </code></pre>
  
  <blockquote>
    <blockquote>
      <blockquote>
        <p>print Post.objects.filter(is_active=True, created__lt=timezone.now()).query
        SELECT <code>blog_post</code>.<code>id</code>, <code>blog_post</code>.<code>title</code>, <code>blog_post</code>.<code>slug</code>, <code>blog_post</code>.<code>meta_description</code>, <code>blog_post</code>.<code>img</code>, <code>blog_post</code>.<code>announcement</code>, <code>blog_post</code>.<code>content</code>, <code>blog_post</code>.<code>author_id</code>, <code>blog_post</code>.<code>is_innovation</code>, <code>blog_post</code>.<code>is_recommended</code>, <code>blog_post</code>.<code>is_active</code>, <code>blog_post</code>.<code>created</code> FROM <code>blog_post</code> WHERE (<code>blog_post</code>.<code>created</code> &lt; 2014-06-04 15:11:42  AND <code>blog_post</code>.<code>is_active</code> = True ) ORDER BY <code>blog_post</code>.<code>created</code> DESC</p>
      </blockquote>
    </blockquote>
  </blockquote>
  
  <p>Running on nginx + gunicorn + gevent (Ubuntu server, MySQL).</p>