|
|
|
|
@ -17,6 +17,8 @@ order_forms = {'translator': TranslationForm, 'catalog': CatalogForm, 'participa |
|
|
|
|
'remote': RemoteForm, 'tickets': TicketsForm, 'visit': VisitForm, 'buildstand': BuildStandForm} |
|
|
|
|
|
|
|
|
|
class ServiceView(FormView): |
|
|
|
|
success_url = '/service/thanks/' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_form_class(self): |
|
|
|
|
url = self.kwargs.get('url') |
|
|
|
|
@ -26,13 +28,9 @@ class ServiceView(FormView): |
|
|
|
|
else: |
|
|
|
|
raise Http404 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_template_names(self): |
|
|
|
|
url = self.kwargs.get('url') |
|
|
|
|
|
|
|
|
|
service = get_object_or_404(Service, url=url) |
|
|
|
|
|
|
|
|
|
return service.template |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|