def dispatch(self, request, *args, **kwargs): if self.should_redirect_to_paywall(request): from corehq.apps.userreports.views import paywall_home return HttpResponseRedirect(paywall_home(self.domain)) else: original = super(ConfigurableReport, self).dispatch(request, *args, **kwargs) return original
def dispatch(self, request, *args, **kwargs): if self.should_redirect_to_paywall(request): from corehq.apps.userreports.views import paywall_home return HttpResponseRedirect(paywall_home(self.domain)) else: original = super(ConfigurableReportView, self).dispatch(request, *args, **kwargs) return original