From 108aa4a710403d9bf2c2f1b7ff37b3fbffa0bcaa Mon Sep 17 00:00:00 2001 From: j Date: Tue, 3 May 2022 13:13:07 +0100 Subject: [PATCH] into/postscript => about/imprint --- app/event/views.py | 3 ++- app/templates/events.html | 12 ++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/app/event/views.py b/app/event/views.py index 0a4745d..2f6db16 100644 --- a/app/event/views.py +++ b/app/event/views.py @@ -11,7 +11,8 @@ def events(request, slug=''): context = {} context['settings'] = settings context['events'] = Event.objects.all().order_by('position') - context['intro'], c = Page.objects.get_or_create(slug='intro') + context['about'], c = Page.objects.get_or_create(slug='about') + context['imprint'], c = Page.objects.get_or_create(slug='imprint') return render(request, 'events.html', context) diff --git a/app/templates/events.html b/app/templates/events.html index aa8affa..e6f8317 100644 --- a/app/templates/events.html +++ b/app/templates/events.html @@ -2,12 +2,12 @@ {% block title %}{{ settings.title }}{% endblock title %} {% block main %}
-
- {{ intro.body | safe }} +
+ {{ about.body | safe }}
{% if request.user.is_staff %} {% endif %}
@@ -37,12 +37,12 @@
{% endfor %}
-
- {{ postscript.body | safe }} +
+ {{ imprint.body | safe }}
{% if request.user.is_staff %} {% endif %}