From 5e380fa09e0877622250170dd4b58896542c0888 Mon Sep 17 00:00:00 2001 From: nineven Date: Tue, 15 Feb 2022 10:40:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_ser/api/models.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fir_ser/api/models.py b/fir_ser/api/models.py index 5bf518b..2aa605c 100644 --- a/fir_ser/api/models.py +++ b/fir_ser/api/models.py @@ -412,9 +412,8 @@ class Order(models.Model): created_time = models.DateTimeField(verbose_name="订单创建时间", auto_now_add=True) description = models.TextField('备注', blank=True, null=True, default='') - -def __str__(self): - return "%s-%s-%s元" % (self.user_id, self.order_number, self.actual_amount / 100) + def __str__(self): + return "%s-%s-%s元" % (self.user_id, self.order_number, self.actual_amount / 100) class Price(models.Model):