Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Tag also apps added using django command as installed (#16873)
Michal Čerešňa3e069264180f
diff --git a/saleor/app/management/commands/install_app.py b/saleor/app/management/commands/install_app.pyindex 559dccc9f4..98f2010460 100644--- a/saleor/app/management/commands/install_app.py+++ b/saleor/app/management/commands/install_app.py@@ -49,7 +49,9 @@ class Command(BaseCommand):app_job.permissions.set(permissions)try:- _, token = install_app(app_job, activate)+ app, token = install_app(app_job, activate)+ app.is_installed = True+ app.save(update_fields=["is_installed"])app_job.delete()except Exception as e:app_job.status = JobStatus.FAILEDdiff --git a/saleor/app/tests/test_app_commands.py b/saleor/app/tests/test_app_commands.pyindex 94ce4d4a07..e69b0552f9 100644--- a/saleor/app/tests/test_app_commands.py+++ b/saleor/app/tests/test_app_commands.py@@ -21,6 +21,7 @@ def test_creates_app_from_manifest():tokens = app.tokens.all()assert len(tokens) == 1+ assert app.is_installedassert not app.is_activeassert app.uuid is not None@@ -34,6 +35,7 @@ def test_creates_app_from_manifest_activate_app():tokens = app.tokens.all()assert len(tokens) == 1+ assert app.is_installedassert app.is_active