Permalink
Browse files

bth: news sort order

  • Loading branch information...
1 parent 9cf13af commit 287cb8abc362fa464cf494312a44f3e9430696b4 @benthuffine committed Nov 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 apps/content/views.py
View
@@ -66,7 +66,7 @@ def newsevent_list(request):
def newsevent_detail(request, slug):
event = get_object_or_404(NewsEvent, slug__exact=slug)
- if event.start_date >= datetime.now().date() or event.end_date <= datetime.now().date():
+ if event.start_date <= datetime.now().date() or event.end_date >= datetime.now().date():
raise Http404('Page Not Found')
recent_entries = NewsEvent.objects.filter(approved=True).order_by('start_date', 'event_start_date')[:6]

0 comments on commit 287cb8a

Please sign in to comment.