mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 22:23:23 +00:00
Merge branch 'bugfix' into 'master'
cache: fix error 500 with new django version See merge request ae/Sith!273
This commit is contained in:
commit
390a4b0064
@ -43,7 +43,7 @@
|
|||||||
<div id="birthdays_content">
|
<div id="birthdays_content">
|
||||||
{% if user.is_subscribed %}
|
{% if user.is_subscribed %}
|
||||||
{# Cache request for 1 hour #}
|
{# Cache request for 1 hour #}
|
||||||
{% cache 3600 birthdays %}
|
{% cache 3600 "birthdays" %}
|
||||||
<ul class="birthdays_year">
|
<ul class="birthdays_year">
|
||||||
{% for d in birthdays.dates('date_of_birth', 'year', 'DESC') %}
|
{% for d in birthdays.dates('date_of_birth', 'year', 'DESC') %}
|
||||||
<li>
|
<li>
|
||||||
|
@ -59,7 +59,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="header_bar">
|
<div id="header_bar">
|
||||||
<ul id="header_bars_infos">
|
<ul id="header_bars_infos">
|
||||||
{% cache 100 counters_activity %}
|
{% cache 100 "counters_activity" %}
|
||||||
{% for bar in Counter.objects.filter(type="BAR").all() %}
|
{% for bar in Counter.objects.filter(type="BAR").all() %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ url('counter:activity', counter_id=bar.id) }}" style="padding: 0px">
|
<a href="{{ url('counter:activity', counter_id=bar.id) }}" style="padding: 0px">
|
||||||
|
Loading…
Reference in New Issue
Block a user