X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/11acab073dcbe3138f9208229c29220646e7457e..a1edf3f1a7cff6e6f4d85a4288ca9b1d5cd3b254:/apps/funding/views.py?ds=inline diff --git a/apps/funding/views.py b/apps/funding/views.py index 0b84a6c52..dbbe21986 100644 --- a/apps/funding/views.py +++ b/apps/funding/views.py @@ -115,7 +115,7 @@ class CurrentView(OfferDetailView): def dispatch(self, request, slug=None): self.object = Offer.current() if self.object is None: - raise Http404 + return redirect(reverse('funding')) elif slug != self.object.slug: return redirect(reverse('funding_current', args=[self.object.slug])) return super(CurrentView, self).dispatch(request, slug)