Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
AE
Sith
Commits
94b029dc
Verified
Commit
94b029dc
authored
Jun 12, 2020
by
Sli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cache: fix error 500 with new django version
parent
45d5728c
Pipeline
#2194
passed with stage
in 32 minutes and 23 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
com/templates/com/news_list.jinja
com/templates/com/news_list.jinja
+1
-1
core/templates/core/base.jinja
core/templates/core/base.jinja
+1
-1
No files found.
com/templates/com/news_list.jinja
View file @
94b029dc
...
...
@@ -43,7 +43,7 @@
<div
id=
"birthdays_content"
>
{%
if
user.is_subscribed
%}
{# Cache request for 1 hour #}
{%
cache
3600
birthdays
%}
{%
cache
3600
"
birthdays
"
%}
<ul
class=
"birthdays_year"
>
{%
for
d
in
birthdays.dates
(
'date_of_birth'
,
'year'
,
'DESC'
)
%}
<li>
...
...
core/templates/core/base.jinja
View file @
94b029dc
...
...
@@ -59,7 +59,7 @@
</div>
<div
id=
"header_bar"
>
<ul
id=
"header_bars_infos"
>
{%
cache
100
counters_activity
%}
{%
cache
100
"
counters_activity
"
%}
{%
for
bar
in
Counter.objects.
filter
(
type
=
"BAR"
)
.
all
()
%}
<li>
<a
href=
"
{{
url
(
'counter:activity'
,
counter_id
=
bar.id
)
}}
"
style=
"padding: 0px"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment