title: Filter items on date (Django)
body: <p>I make a simple todo list. First, I display a list of all dates on which items have been added. </p>
  
  <ul>
  <li><p>views.py </p>
  
  <pre><code>def allDates(request):
      date = Todo.objects.extra(select={'custom_dt': 'strftime("%d-%m-%Y", "created_at")'}).values_list('custom_dt', flat=True).order_by('-custom_dt').distinct() # display all dates
  
      return render(request, 'todo/alldates.html', {'date':date})
  </code></pre></li>
  <li><p>alldates.html</p>
  
  <pre><code>{% for dat in date %}
      &lt;a href="{% url 'detaildate' %}"&gt;&lt;h1&gt;{{ dat }}&lt;/h1&gt;&lt;/a&gt; # link to see items added to this date
  {% endfor %}
  </code></pre></li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/8c3CX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8c3CX.png" alt="enter image description here"></a></p>
  
  <p>After I try to create a method that filters the items by date I clicked on</p>
  
  <ul>
  <li><p>views.py (detaildate)</p>
  
  <pre><code>def detailDate(request):
     detail = Todo.objects.order_by('-created_at')
     return render(request, 'todo/detaildate.html', {'detail':detail})
  </code></pre></li>
  </ul>
  
  <p>I have this result, display all items, but i need only from date I link </p>
  
  <p><a href="https://i.stack.imgur.com/fNPPe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fNPPe.png" alt="enter image description here"></a></p>
  
  <p>How I can display - filter items by date in link ? </p>