Исправил отображение заказов в админке

This commit is contained in:
2015-05-11 11:18:28 +05:00
parent f29ab42443
commit 6a7098b6e7

View File

@@ -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):