From 95ffeff8cba34c99373d5ca63209536fe1de34bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Tue, 28 Jul 2020 00:33:02 +0800 Subject: [PATCH] Removed the default value of the accounting record order in the accounting application. --- accounting/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounting/models.py b/accounting/models.py index eec35bd..07e60d6 100644 --- a/accounting/models.py +++ b/accounting/models.py @@ -244,7 +244,7 @@ class Record(models.Model): Transaction, on_delete=models.CASCADE, db_column="transaction_sn") is_credit = models.BooleanField() - ord = models.PositiveSmallIntegerField(default=1) + ord = models.PositiveSmallIntegerField() account = models.ForeignKey( Account, on_delete=models.PROTECT, db_column="account_sn") summary = models.CharField(max_length=128, blank=True, null=True)