From 66f7b7ec2e4e1ccae9f82ebf7d5c5148716a1a59 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Sat, 18 Mar 2017 16:33:48 +0100 Subject: [PATCH] fix CFS open mixin --- src/program/mixins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/program/mixins.py b/src/program/mixins.py index 20cc04e8..c66a9fa7 100644 --- a/src/program/mixins.py +++ b/src/program/mixins.py @@ -10,7 +10,7 @@ from django.http import Http404, HttpResponse class EnsureCFSOpenMixin(SingleObjectMixin): def dispatch(self, request, *args, **kwargs): # do not permit editing if call for speakers is not open - if not self.get_object().camp.call_for_speakers_open: + if not self.camp.call_for_speakers_open: messages.error(request, "The Call for Speakers is not open.") return redirect(reverse('proposal_list', kwargs={'camp_slug': self.camp.slug}))