title: django filter older than day(s)?
body: <p>The day is the number a user will input to get the result that is older than (days from user input). For example, if user inputs 32 days, they will get the results that are older than 30 days.</p>
  
  <p>A quick try-out:</p>
  
  <pre><code>class Entry(models.Model):
      entered = models.DateTimeField()
  
  &gt;&gt;&gt; from datetime import datetime
  &gt;&gt;&gt; Entry(entered = datetime.now()).save()
  &gt;&gt;&gt; Entry.objects.filter(entered__lte = datetime.now())
  [&lt;Entry: Entry object&gt;]
  &gt;&gt;&gt; Entry.objects.filter(entered__gte = datetime.now())
  []
  &gt;&gt;&gt; Entry.objects.filter(entered__gte = datetime.now(), entered__lte=datetime(2009,11,1,0,0))
  [&lt;Entry: Entry object&gt;]
  </code></pre>
  
  <p>My problem and my trying </p>
  
  <pre><code>xxxx__day__lte.
  </code></pre>
  
  <p><code>last_contact_filled</code> input from input field</p>
  
  <pre><code>for day_filter in xrange(1,int(last_contact_filled)+1):
                  qdict['last_contact__day']=day_filter
  </code></pre>
  
  <p>What's the best way to do this in Django to filter by day(s) in my case?</p>