title: Django - using filter/exclude doesn't work
body: <p>i have this code:</p>
  
  <pre><code>import datetime
  
  today_min = datetime.datetime.combine(datetime.date.today(), datetime.time.min)
  
  pickingYesterday = Order.objects.exclude(actionorder__type__name = 'In process',actionorder__dateCreation__lt=today_min).filter(actionorder__type__name = 'Completed', actionorder__dateCreation__lt=today_min).count()
  </code></pre>
  
  <p>I want to filter out all the orders which these conditions apply for 
  yesterday.</p>
  
  <pre><code>class Order(models.Model):
  
  class Type(models.Model):
      name = models.CharField( max_length = 100)
  
  class actionOrder(models.Model):
      order = models.ForeignKey(Order)
      Type = models.ForeignKey(Type)
      dateCreation  = models.DateTimeField( auto_now = True )
  </code></pre>