block tags, bleh (migdal compatibility)
[prawokultury.git] / prawokultury / context_processors.py
1 # -*- coding: utf-8 -*-
2 from django.core.urlresolvers import reverse
3 from .contact_forms import RegisterSpeaker
4
5
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"])
10     else:
11         url = reverse("contact_form", args=["register"])
12     return {'REGISTRATION_URL': url}