Commit c5b2e797 authored by dorothee.kueppers's avatar dorothee.kueppers
Browse files

postgresql fix?

parent 6e2a3bd1
......@@ -39,10 +39,10 @@ def get_landing_page(request):
# settings.EMAIL_HOST_USER,
# ['DoroKueppers@web.de'],
# fail_silently=False)
# try:
selection = Selection.objects.filter(active=True).latest('endtime')
# except Model.DoesNotExist:
# selection = None
try:
selection = Selection.objects.filter(active=True).latest('endtime')
except Model.DoesNotExist:
selection = None
if selection is not None and selection.endtime > timezone.now():
running_selection = True
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment