Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default theme created when uploading template #424

Merged
merged 2 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions backend/src/zango/apps/shared/tenancy/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,12 @@ def initialize_workspace(tenant_uuid, app_template_path=None):
tenant.deployed_on = timezone.now()
tenant.save(update_fields=["status", "deployed_on"])

theme = ThemesModel.objects.create(
name="Default", tenant=tenant, config=DEFAULT_THEME_CONFIG
)

if not app_template_path:
assign_policies_to_anonymous_user(tenant.schema_name)
theme = ThemesModel.objects.create(
name="Default", tenant=tenant, config=DEFAULT_THEME_CONFIG
)
else:
try:
subprocess.run(
Expand Down
2 changes: 1 addition & 1 deletion backend/src/zango/cli/update_apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ def update_apps(app_name):
git_mode = False
extra_config = tenant_obj.extra_config or {}
git_settings = extra_config.get("git_config")
if git_settings:
if git_settings and git_settings.get("repo_url", None):
git_mode = True
# Initialize git repository
repo_url = git_settings["repo_url"]
Expand Down
Loading