X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/ebc2f30757c39ad8decccbe020f4a721130534df..5f107a833c00cf5a15ae7e6c2754262afe78fec7:/prawokultury/context_processors.py?ds=sidebyside diff --git a/prawokultury/context_processors.py b/prawokultury/context_processors.py index 7e8713c..cb671da 100644 --- a/prawokultury/context_processors.py +++ b/prawokultury/context_processors.py @@ -1,12 +1,17 @@ # -*- coding: utf-8 -*- from django.core.urlresolvers import reverse + +from prawokultury.contact_forms import RegistrationForm from .contact_forms import RegisterSpeaker def registration_url(request): speaker_form = RegisterSpeaker() + registration_form = RegistrationForm() if speaker_form.started and not speaker_form.closed: url = reverse("contact_form", args=["register-speaker"]) + elif speaker_form.closed and not registration_form.started: + url = reverse("contact_form", args=["remind-me"]) else: url = reverse("contact_form", args=["register"]) return {'REGISTRATION_URL': url}