Добавил шаблон таблицы, переписал на него таблицу выхода заказов
This commit is contained in:
@@ -68,7 +68,7 @@ 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) #отменен
|
||||
cost_items = models.ManyToManyField(CostItem, through='OrderCosts') #статьи затрат
|
||||
cost_items = models.ManyToManyField(CostItem, through='OrderCosts', related_name='+', null=True, blank=True) #статьи затрат
|
||||
|
||||
def __unicode__(self):
|
||||
return ', '.join((self.date.strftime('%d %b %Y'), self.product.name, self.address))
|
||||
|
||||
Reference in New Issue
Block a user