title: Django template how to remove repeated values?
body: <p>Is there a way to say to Django to hide/remove (show a blank space) for fields that got same values as previous row?</p>
  
  <p>i.e.: if now is equal for differents Articles can it be show only for the first of the group? </p>
  
  <pre><code>from django.views.generic.list import ListView
  from django.utils import timezone
  
  from articles.models import Article
  
  class ArticleListView(ListView):
  
      model = Article
  
      def get_context_data(self, **kwargs):
          context = super(ArticleListView, self).get_context_data(**kwargs)
          context['now'] = timezone.now()
          return context
  
  
  &lt;h1&gt;Articles&lt;/h1&gt;
  &lt;ul&gt;
  {% for article in object_list %}
      &lt;li&gt;{{ article.pub_date|date }} - {{ article.headline }}&lt;/li&gt;
  {% empty %}
      &lt;li&gt;No articles yet.&lt;/li&gt;
  {% endfor %}
  &lt;/ul&gt;
  </code></pre>
  
  <blockquote>
    <p>Article  -   now</p>
    
    <p>a          - 2017-01-01</p>
    
    <p>b          - </p>
    
    <p>c          - 2017-01-02</p>
    
    <p>d          -</p>
  </blockquote>
  
  <p>Is this possible from <strong>view</strong> or directly in <strong>template</strong>?</p>