diff --git a/e2e/test_provider_proxy.py b/e2e/test_provider_proxy.py index bc26f8d4f..57be8b831 100644 --- a/e2e/test_provider_proxy.py +++ b/e2e/test_provider_proxy.py @@ -20,9 +20,7 @@ from passbook.outposts.models import ( OutpostConfig, OutpostDeploymentType, OutpostType, - default_outpost_config, ) -from passbook.providers.proxy.controllers.docker import ProxyDockerController from passbook.providers.proxy.models import ProxyProvider diff --git a/passbook/stages/consent/stage.py b/passbook/stages/consent/stage.py index dcb7bce0c..160ab1a84 100644 --- a/passbook/stages/consent/stage.py +++ b/passbook/stages/consent/stage.py @@ -27,11 +27,10 @@ class ConsentStageView(FormView, StageView): def get_template_names(self) -> List[str]: # PLAN_CONTEXT_CONSENT_TEMPLATE has to be set by a template that calls this stage - # TODO: Add a default template in case a user directly implements this stage if PLAN_CONTEXT_CONSENT_TEMPLATE in self.executor.plan.context: template_name = self.executor.plan.context[PLAN_CONTEXT_CONSENT_TEMPLATE] return [template_name] - return super().get_template_names() + return ["stages/consent/fallback.html"] def get(self, request: HttpRequest, *args, **kwargs) -> HttpResponse: current_stage: ConsentStage = self.executor.current_stage diff --git a/passbook/stages/consent/templates/stages/consent/fallback.html b/passbook/stages/consent/templates/stages/consent/fallback.html new file mode 100644 index 000000000..cdb16e689 --- /dev/null +++ b/passbook/stages/consent/templates/stages/consent/fallback.html @@ -0,0 +1,9 @@ +{% extends 'login/form_with_user.html' %} + +{% load i18n %} + +{% block beneath_form %} +