From 6a7098b6e7d05f998915d9a5029e9232bedc414a Mon Sep 17 00:00:00 2001 From: "Denis V. Dedkov" Date: Mon, 11 May 2015 11:18:28 +0500 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BE=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=B7=D0=B0=D0=BA=D0=B0=D0=B7=D0=BE=D0=B2=20?= =?UTF-8?q?=D0=B2=20=D0=B0=D0=B4=D0=BC=D0=B8=D0=BD=D0=BA=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- asuzr/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/asuzr/models.py b/asuzr/models.py index 574a55d..6d16814 100644 --- a/asuzr/models.py +++ b/asuzr/models.py @@ -74,6 +74,9 @@ class Order(models.Model): contact = models.CharField(max_length=150, null=True, blank = True) #контактное лицо phone_num = models.CharField(max_length=150,null=True, blank = True) #контактный телефон cancelled = models.BooleanField(default=False) #отменен + + def __unicode__(self): + return ', '.join((self.date.strftime('%d %b %Y'), self.product.name, self.address)) @property def date_dmy(self):