def dispatch(self, request, requestion_id, *args, **kwargs): requestion = get_object_or_404(Requestion, id=requestion_id) if not isinstance(request, FakeWSGIRequest): if requestion.is_fake_identity_documents: return HttpResponseRedirect( u'%s?next=%s' % (reverse('operator_requestion_set_identity_document', kwargs={'requestion_id': requestion_id}), urlquote(request.get_full_path())) ) return RequirePermissionsMixin.dispatch(self, request, *args, requestion=requestion, **kwargs)
def dispatch(self, request, requestion_id): requestion = get_object_or_404(Requestion, id=requestion_id) return RequirePermissionsMixin.dispatch(self, request, requestion=requestion)
def dispatch(self, request): redirect_to = request.REQUEST.get('next', '') redirect_to = check_url(redirect_to, reverse('supervisor_frontpage')) return RequirePermissionsMixin.dispatch(self, request, redirect_to=redirect_to)
def dispatch(self, request): redirect_to = request.GET.get("next") or request.POST.get("next", "") redirect_to = check_url(redirect_to, reverse("supervisor_frontpage")) return RequirePermissionsMixin.dispatch(self, request, redirect_to=redirect_to)