X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/11acab073dcbe3138f9208229c29220646e7457e..d2199704c75d29ba98e0f92d27cb63743183e906:/apps/funding/views.py 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)