from django.views.generic.list_detail import object_list
from sflc.apps.news.models import ExternalArticle
from sflc.apps.events.models import Event
from conservancy.apps.news.models import ExternalArticle
from conservancy.apps.events.models import Event
from datetime import datetime
def custom_index(request, queryset, *args, **kwargs):
"""News index. Calls a generic list view, but passes additional
context including past and future events, and an index of news by
year.