On corrige un bug sur le cache des pages (cas d'événements avec même titre)
This commit is contained in:
parent
5e246a6c78
commit
7d5b47e7ab
@ -65,7 +65,7 @@
|
|||||||
{{ object.description|safe }}
|
{{ object.description|safe }}
|
||||||
</header>
|
</header>
|
||||||
{% with cache_timeout=user.is_authenticated|yesno:"30,600" %}
|
{% with cache_timeout=user.is_authenticated|yesno:"30,600" %}
|
||||||
{% cache cache_timeout organisation_list user.is_authenticated object page_obj.number past %}
|
{% cache cache_timeout organisation_list user.is_authenticated object.pk page_obj.number past %}
|
||||||
<div class="slide-buttons">
|
<div class="slide-buttons">
|
||||||
<a href="{% url 'export_ical_organisation' object.pk %}" role="button">S'abonner à l'agenda {% picto_from_name "calendar" %}</a>
|
<a href="{% url 'export_ical_organisation' object.pk %}" role="button">S'abonner à l'agenda {% picto_from_name "calendar" %}</a>
|
||||||
{% if past %}
|
{% if past %}
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
<div class="grid two-columns">
|
<div class="grid two-columns">
|
||||||
<div>
|
<div>
|
||||||
{% with cache_timeout=user.is_authenticated|yesno:"30,600" %}
|
{% with cache_timeout=user.is_authenticated|yesno:"30,600" %}
|
||||||
{% cache cache_timeout event_body user.is_authenticated event %}
|
{% cache cache_timeout event_body user.is_authenticated event.pk %}
|
||||||
{% include "agenda_culturel/single-event/event-single-inc.html" with event=event filter=filter %}
|
{% include "agenda_culturel/single-event/event-single-inc.html" with event=event filter=filter %}
|
||||||
{% endcache %}
|
{% endcache %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
@ -130,7 +130,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% with cache_timeout=user.is_authenticated|yesno:"30,600" %}
|
{% with cache_timeout=user.is_authenticated|yesno:"30,600" %}
|
||||||
{% cache cache_timeout event_aside user.is_authenticated event %}
|
{% cache cache_timeout event_aside user.is_authenticated event.pk %}
|
||||||
<aside>
|
<aside>
|
||||||
{% with event.get_concurrent_events as concurrent_events %}
|
{% with event.get_concurrent_events as concurrent_events %}
|
||||||
{% if concurrent_events %}
|
{% if concurrent_events %}
|
||||||
|
@ -94,7 +94,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% with cache_timeout=user.is_authenticated|yesno:"30,600" %}
|
{% with cache_timeout=user.is_authenticated|yesno:"30,600" %}
|
||||||
{% cache cache_timeout place_list user.is_authenticated object page_obj.number past %}
|
{% cache cache_timeout place_list user.is_authenticated object.pk page_obj.number past %}
|
||||||
<div class="slide-buttons">
|
<div class="slide-buttons">
|
||||||
<a href="{% url 'export_ical_place' object.pk %}" role="button">S'abonner à l'agenda {% picto_from_name "calendar" %}</a>
|
<a href="{% url 'export_ical_place' object.pk %}" role="button">S'abonner à l'agenda {% picto_from_name "calendar" %}</a>
|
||||||
{% if past %}
|
{% if past %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user