Browse Source

Odstraněn další RuntimeWarning

export_seznamu_prednasek
Pavel "LEdoian" Turinsky 5 years ago
parent
commit
402f5bdeb4
  1. 3
      seminar/views.py

3
seminar/views.py

@ -18,6 +18,7 @@ from .unicodecsv import UnicodeWriter
from .forms import NameForm
from datetime import timedelta, date, datetime
from django.utils import timezone
from itertools import groupby
import tempfile
import subprocess
@ -143,7 +144,7 @@ class StareNovinkyView(generic.ListView):
# Organizatori
def aktivniOrganizatori(datum=date.today()):
def aktivniOrganizatori(datum=timezone.now()):
return Organizator.objects.exclude(
organizuje_do__isnull=False,
organizuje_do__lt=datum

Loading…
Cancel
Save