Export: Fix handling of form validation errors

This commit is contained in:
Raphael Michel
2023-01-12 09:56:45 +01:00
parent 0c0d8b2c55
commit bddc91d595
2 changed files with 2 additions and 2 deletions

View File

@@ -2279,7 +2279,7 @@ class ExportDoView(EventPermissionRequiredMixin, ExportMixin, AsyncAction, Templ
permission = 'can_view_orders'
known_errortypes = ['ExportError']
task = export
template_name = 'pretixcontrol/orders/export.html'
template_name = 'pretixcontrol/orders/export_form.html'
def get_success_message(self, value):
return None

View File

@@ -1579,7 +1579,7 @@ class ExportMixin:
class ExportDoView(OrganizerPermissionRequiredMixin, ExportMixin, AsyncAction, TemplateView):
known_errortypes = ['ExportError']
task = multiexport
template_name = 'pretixcontrol/organizers/export.html'
template_name = 'pretixcontrol/organizers/export_form.html'
def get_success_message(self, value):
return None