fix CFS open mixin

This commit is contained in:
Thomas Steen Rasmussen 2017-03-18 16:33:48 +01:00
parent dd23490c01
commit 66f7b7ec2e
1 changed files with 1 additions and 1 deletions

View File

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