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