Fixed redirections and errors

This commit is contained in:
Raphael Michel
2015-09-17 23:54:22 +02:00
parent c8830cc880
commit 8e965bcd6d
4 changed files with 5 additions and 5 deletions

View File

@@ -31,4 +31,4 @@ class EventMiddleware:
organizer__slug=url.kwargs['organizer'],
).select_related('organizer')[0]
except IndexError:
return Http404(_('The selected event was not found.'))
raise Http404(_('The selected event was not found.'))

View File

@@ -290,4 +290,4 @@ class OrderDownload(EventViewMixin, OrderDetailMixin, View):
ct.cachedfile = cf
ct.save()
generate(self.order.identity, self.output.identifier)
return redirect(reverse('presale:cachedfile.download', kwargs={'id': ct.cachedfile.id}))
return redirect(reverse('cachedfile.download', kwargs={'id': ct.cachedfile.id}))