Commit 7f897ace authored by Ciella Francisco's avatar Ciella Francisco 😵

Bugfix: looped twice, repeating the display of events

parent 5f3978fc
...@@ -5,13 +5,11 @@ ...@@ -5,13 +5,11 @@
<ul> <ul>
{% for event in object_list %} {% for event in object_list %}
<ul> <ul>
{% for event_fields in object_list %}
<div class="center-cropped" <div class="center-cropped"
style="background-image: url({{event_fields.event_header.url}});"></div> style="background-image: url({{event.event_header.url}});"></div>
</div> </div>
<a href="{{ event.get_absolute_url }}">{{ event.event_name }}</a> <a href="{{ event.get_absolute_url }}">{{ event.event_name }}</a>
<li>{{event_fields.event_organizer}}</li> <li>{{event.event_organizer}}</li>
{% endfor %}
</ul> </ul>
{% endfor %} {% endfor %}
</ul> </ul>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment