Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Ensure history entry always gets meaningful message

akjanik17c716aa406b
diff --git a/saleor/order/models.py b/saleor/order/models.py
index 99b1049679..92581ce4ca 100644
--- a/saleor/order/models.py
+++ b/saleor/order/models.py
@@ -146,7 +146,7 @@ class Order(models.Model, ItemSet):
def is_pre_authorized(self):
return self.payments.filter(status=PaymentStatus.PREAUTH).exists()
- def create_history_entry(self, content='', user=None):
+ def create_history_entry(self, content, user=None):
self.history.create(content=content, user=user)
def is_shipping_required(self):