fix CFS open mixin
This commit is contained in:
parent
dd23490c01
commit
66f7b7ec2e
|
@ -10,7 +10,7 @@ from django.http import Http404, HttpResponse
|
||||||
class EnsureCFSOpenMixin(SingleObjectMixin):
|
class EnsureCFSOpenMixin(SingleObjectMixin):
|
||||||
def dispatch(self, request, *args, **kwargs):
|
def dispatch(self, request, *args, **kwargs):
|
||||||
# do not permit editing if call for speakers is not open
|
# 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.")
|
messages.error(request, "The Call for Speakers is not open.")
|
||||||
return redirect(reverse('proposal_list', kwargs={'camp_slug': self.camp.slug}))
|
return redirect(reverse('proposal_list', kwargs={'camp_slug': self.camp.slug}))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue