aboutsummaryrefslogtreecommitdiff
path: root/views.py
diff options
context:
space:
mode:
authorAlban Gruin2017-11-06 08:21:35 +0100
committerAlban Gruin2017-11-06 08:21:35 +0100
commit771f4ebb8f1e27212bfce413ea664a73c7a86965 (patch)
tree2b0525b27ff4706ff8e4eff510b464c3cb86b9e2 /views.py
parent959bbaa5170aea4a9600d774280d44fc5107fdae (diff)
parentbafa5f07a4e1b5c2cc2bb234ad2f12929a983025 (diff)
Merge commit 'bafa5f07a4e1b5c2cc2bb234ad2f12929a983025'
Diffstat (limited to 'views.py')
-rw-r--r--views.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/views.py b/views.py
index 7c19840..c0c63cb 100644
--- a/views.py
+++ b/views.py
@@ -15,7 +15,6 @@
import datetime
-from django.conf import settings
from django.db.models import Max
from django.db.models.functions import Length
from django.http import Http404
@@ -24,6 +23,8 @@ from django.shortcuts import get_object_or_404, render
from .models import Timetable, Group, Course, Year
from .utils import get_current_week, get_current_or_next_week, get_week, group_courses
+import edt
+
def index(request):
years = Year.objects.order_by("name")
return render(request, "index.html", {"elements": years})
@@ -104,5 +105,5 @@ def calendars(request, year_slug, timetable_slug, group_slug):
return render(request, "calendars.html", {"group": group, "groups": groups})
-def contact(request):
- return render(request, "contact.html", {"email": settings.ADMINS[0][1]})
+def ctx_processor(request):
+ return {"celcatsanitizer_version": edt.VERSION}