Commits

Anonymous committed 1238065

[project @ 351]
Fixed bug with self-maintenance of galleries

Comments (0)

Files changed (1)

cciw/cciwmain/views/camps.py

         gallery = Gallery.objects.get(location=location)
     except Gallery.DoesNotExist:
         # Self maintenance
-        if not camp.end_date <= datetime.date.today():
+        if camp.end_date <= datetime.date.today():
             # if the gallery does not exist yet, but should, create it
             gallery = Gallery(location = location)
             gallery.save()