|
|
|
@ -14,7 +14,7 @@ class Orders(models.Model):
|
|
|
|
|
orderName = models.CharField(max_length=100, verbose_name='наименование', null=True) |
|
|
|
|
orderDesc = models.TextField(verbose_name='описание', null=True) |
|
|
|
|
orderPhoto = models.ImageField(verbose_name='фото', null=True) |
|
|
|
|
orderPhotoPay = models.ImageField(upload_to='photo/', verbose_name='чек') |
|
|
|
|
orderPhotoPay = models.ImageField(verbose_name='чек') |
|
|
|
|
orderAddress = models.CharField(max_length=100, verbose_name='адрес доставки', blank=True, null=True) |
|
|
|
|
orderAccess = models.CharField(max_length=100, verbose_name='доступ', blank=True, null=True) |
|
|
|
|
orderCreateDateTime = models.DateTimeField(auto_now_add=True, null=True, verbose_name='дата и время создания') |
|
|
|
@ -135,6 +135,7 @@ class Orders(models.Model):
|
|
|
|
|
""" |
|
|
|
|
return html |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Meta: |
|
|
|
|
|
|
|
|
|
verbose_name_plural = 'Заказы' |
|
|
|
|