Commits

Anonymous committed e17545e

[project @ 350]
Fixed filtering of camps in past camps page so that newly finished camps will immediately be able to access message boards.

Comments (0)

Files changed (1)

cciw/cciwmain/views/camps.py

     
     Context:
         show_ancient
-            True is the really old camps should be shown
+            True if the really old camps should be shown
         camps
             List of all Camp objects (or all Camp objects in the specified year).
     """
     c = standard_extra_context()
     c['title'] ="Camp forums and photos"
-    all_camps = Camp.objects.filter(year__lt=get_thisyear())
+    all_camps = Camp.objects.filter(end_date__lte=datetime.datetime.today())
     if (year == None):
         camps = all_camps.order_by('-year', 'number')
         c['show_ancient'] = True