Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add default value for comment
Marcin Gębala9aff52656557
diff --git a/saleor/order/models.py b/saleor/order/models.pyindex c88b298a7d..f24d7a4fb6 100644--- a/saleor/order/models.py+++ b/saleor/order/models.py@@ -132,7 +132,7 @@ class Order(models.Model, ItemSet):def is_pre_authorized(self):return self.payments.filter(status='preauth').exists()- def create_history_entry(self, comment, status=None, user=None):+ def create_history_entry(self, comment='', status=None, user=None):if not status:status = self.statusself.history.create(status=status, comment=comment, user=user)