diff --git a/passbook/admin/views/stages.py b/passbook/admin/views/stages.py index e60d7aa9f..912497332 100644 --- a/passbook/admin/views/stages.py +++ b/passbook/admin/views/stages.py @@ -34,7 +34,8 @@ class StageListView(LoginRequiredMixin, PermissionListMixin, ListView): def get_context_data(self, **kwargs): kwargs["types"] = { - x.__name__: x._meta.verbose_name for x in all_subclasses(Stage) + x.__name__: x._meta.verbose_name + for x in sorted(all_subclasses(Stage), key=lambda x: x.__name__) } return super().get_context_data(**kwargs) diff --git a/passbook/api/v2/urls.py b/passbook/api/v2/urls.py index 402f5eddb..4cf282a98 100644 --- a/passbook/api/v2/urls.py +++ b/passbook/api/v2/urls.py @@ -86,13 +86,13 @@ router.register("stages/invitation", InvitationStageViewSet) router.register("stages/invitation/invitations", InvitationViewSet) router.register("stages/otp", OTPStageViewSet) router.register("stages/password", PasswordStageViewSet) -router.register("stages/prompt", PromptStageViewSet) +router.register("stages/prompt/stages", PromptStageViewSet) router.register("stages/prompt/prompts", PromptViewSet) router.register("stages/user_login", UserLoginStageViewSet) router.register("stages/user_logout", UserLogoutStageViewSet) router.register("stages/user_write", UserWriteStageViewSet) -router.register("flows", FlowViewSet) +router.register("flows/instances", FlowViewSet) router.register("flows/bindings", FlowStageBindingViewSet) if settings.DEBUG: diff --git a/passbook/core/templates/partials/form.html b/passbook/core/templates/partials/form.html index c7aa7ebe9..77c867889 100644 --- a/passbook/core/templates/partials/form.html +++ b/passbook/core/templates/partials/form.html @@ -25,6 +25,11 @@