Features: 1) Prevent CRM trigger for instances with "PENDING" status;
Fixes: 1) Adjust `.dockerignore` and `.gitignore` to replace `db_backups/` with `backups/`; Extra: None;
This commit is contained in:
parent
4d9e276f2b
commit
81b2da33d2
3 changed files with 3 additions and 3 deletions
|
|
@ -68,7 +68,7 @@ pip-delete-this-directory.txt
|
|||
# ──────────────────────────────────────────────────────────────────────────
|
||||
storefront/Dockerfile
|
||||
docker-compose.yml
|
||||
db_backups/
|
||||
backups/
|
||||
services_data/
|
||||
static/
|
||||
media/
|
||||
|
|
|
|||
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -35,7 +35,7 @@ db.sqlite3-journal
|
|||
|
||||
# Django backups and metadata
|
||||
instance/
|
||||
db_backups/
|
||||
backups/
|
||||
|
||||
# ──────────────────────────────────────────────────────────────────────────
|
||||
# Logs and reports
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ def process_order_changes(instance, created, **_kwargs):
|
|||
if type(instance.attributes) is not dict:
|
||||
instance.attributes = {}
|
||||
|
||||
if any_crm_integrations():
|
||||
if any_crm_integrations() and instance.status != "PENDING":
|
||||
with suppress(CRMException):
|
||||
instance.trigger_crm()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue