From f8beec7dd8cc0928b4f386e2dd8a985122e2fc12 Mon Sep 17 00:00:00 2001 From: devilsautumn Date: Wed, 25 Sep 2024 18:34:23 +0530 Subject: [PATCH] fixed bugs in release workflow --- .../shared/tenancy/management/commands/export_fixture.py | 5 +++++ backend/src/zango/cli/start_project.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/src/zango/apps/shared/tenancy/management/commands/export_fixture.py b/backend/src/zango/apps/shared/tenancy/management/commands/export_fixture.py index 2510ee00..5bd32635 100644 --- a/backend/src/zango/apps/shared/tenancy/management/commands/export_fixture.py +++ b/backend/src/zango/apps/shared/tenancy/management/commands/export_fixture.py @@ -99,6 +99,11 @@ def handle(self, *app_labels, **options): w = Workspace(tenant_obj, None, True) w.ready() models_list = self.get_dynamic_config_models(w) + if len(models_list)<1: + self.stdout.write( + "No fixtures found." + ) + return elif self.framework_fixtures: models_list = ["appauth.UserRoleModel"] diff --git a/backend/src/zango/cli/start_project.py b/backend/src/zango/cli/start_project.py index 5e5167cd..f092c9a1 100644 --- a/backend/src/zango/cli/start_project.py +++ b/backend/src/zango/cli/start_project.py @@ -98,7 +98,7 @@ def create_project( project_template_path = os.path.join( os.path.dirname(zango.cli.__file__), "project_template" ) - command = f"{command} --template {str(project_template_path)}" + command = f"{command} --template '{str(project_template_path)}'" subprocess.run(command, shell=True, check=True) env_keys = {