remotes/origin/mitri4
spacenergy 10 years ago
parent 641cc1ebc1
commit 64c523c68e
  1. 7
      batiskaf/templates/jinja2/product.jinja
  2. 25
      store/migrations/0050_auto_20160312_1628.py
  3. 1
      store/models.py

@ -116,6 +116,13 @@
<div class=" text-left product-description">
{{ product.description|linebreaks|safe }}
</div>
{% if product.video %}
<br>
<h5 class="text-left">Видео обзор</h5>
<div class="video-obzor">
<iframe width="560" height="315" src="https://www.youtube.com/embed/{{product.video}}" frameborder="0" allowfullscreen></iframe>
</div><br>
{%endif%}
{% if ranee %}
<hr class="dashed"/>
<h4>Ранее просмотренные товары</h4>

File diff suppressed because one or more lines are too long

@ -173,6 +173,7 @@ class Product(models.Model):
description = models.TextField(
'Описание', default='', null=True, blank=True)
brand = models.ForeignKey(Brand, verbose_name='Брэнд')
video = models.CharField('Код Youtube', max_length=256, default='')
attirbutes = models.ManyToManyField(
AttributeForCategory, through='AttributesInProduct')
is_leader = models.BooleanField('Лидер продаж', default=False)

Loading…
Cancel
Save