Skip to content

Commit c866840

Browse files
committed
Add last updated date to downloads supernav template
1 parent 4bf3b75 commit c866840

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

downloads/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ def update_supernav():
154154

155155
content = render_to_string('downloads/supernav.html', {
156156
'python_files': python_files,
157+
'last_updated': timezone.now(),
157158
})
158159

159160
box, _ = Box.objects.update_or_create(

templates/downloads/supernav.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- download supernav from templates/downloads/supernav.html -->
1+
<!-- Download supernav from templates/downloads/supernav.html - Last updated at {{ last_updated }} -->
22
<li class="tier-2 super-navigation">
33
{% for data in python_files %}
44
<div class="download-os-{{ data.os.slug }}" style="display: none;">

0 commit comments

Comments
 (0)