into/postscript => about/imprint

This commit is contained in:
j 2022-05-03 13:13:07 +01:00
commit 108aa4a710
2 changed files with 8 additions and 7 deletions

View file

@ -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)