X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/7a47f04940f28745309716d725b63a8278b29e62..47ab7fe33a5e83c8a367b6d265e5927aa576f256:/events/views.py?ds=sidebyside diff --git a/events/views.py b/events/views.py index b2dccc7..515e92d 100644 --- a/events/views.py +++ b/events/views.py @@ -4,7 +4,7 @@ from events.models import Event def events(request): - events = Event.objects.filter(date__gte=datetime.now()) + events = Event.objects.filter(date_end__gte=datetime.now()) events = events.filter(**{"published_%s" % request.LANGUAGE_CODE: True}) return render(request, 'events/event_list.html', { 'object_list': events,