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}))