1 # -*- coding: utf-8 -*-
2 from django.core.urlresolvers import reverse
3 from .contact_forms import RegisterSpeaker
6 def registration_url(request):
7 speaker_form = RegisterSpeaker()
8 if speaker_form.started and not speaker_form.closed:
9 url = reverse("contact_form", args=["register-speaker"])
11 url = reverse("contact_form", args=["register"])
12 return {'REGISTRATION_URL': url}