remotes/origin/mitri4
spacenergy 10 years ago
parent 71ac6bba8a
commit 3bb90acda1
  1. 1
      batiskaf/templates/jinja2/category.jinja
  2. 6
      batiskaf/templates/jinja2/includes/category_filter.jinja
  3. 25
      store/migrations/0038_auto_20151002_1517.py
  4. 1
      store/models.py

@ -74,6 +74,7 @@
{% if category.hide_products %}
{% for child in category.childs.order_by('priority') %}
{% include 'includes/category_category_thumb.jinja' with context %}
{# <li>#}
{# <a href="{{ child.get_absolute_url() }}">{{ child.title }}</a>#}
{# </li>#}

@ -21,7 +21,11 @@
{% if choise.pk.__str__() in request.GET.getlist('brand[]') %}
checked="checked"
{% endif %}
/> {{ choise }}</label>
/> {% if choise.image %}
<img src="/static/{{ choise.image }}" alt="{{ choise.title }}" height="25" style="cursor: pointer">
{% else %}
{{ choise.title }}
{% endif %} </label>
</li>
{% endfor %}
</ul>

File diff suppressed because one or more lines are too long

@ -148,6 +148,7 @@ class AttributeForCategory(models.Model):
class Brand(models.Model):
title = models.CharField('Наименование', max_length=256, default='')
slug = models.SlugField('Ссылка', max_length=256, default='')
image = models.ImageField('Логотип', upload_to=photo_filename, default=None, blank=True, null=True)
class Meta:
verbose_name = 'бренд'

Loading…
Cancel
Save