def show_dates():
now = datetime.now()
dates = Show.objects.exclude(date=datetime.now())
return {"dates": dates}
def show_dates():
now = datetime.now()
dates = Show.objects.filter(date__range=[datetime.now(), timedelta(days=7)])
return {"dates": dates}