X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/11acab073dcbe3138f9208229c29220646e7457e..5667153616be3469413bc0fe8925bbbc4937be70:/apps/funding/views.py?ds=sidebyside 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)