Permalink
Browse files

fixed 'Actions and ...'

  • Loading branch information...
1 parent 0d2fde6 commit 32ecfba1bb0b6ac5e9278ea5303f4f3a22e64155 @Guest007 committed Feb 23, 2014
Showing with 3 additions and 2 deletions.
  1. +1 −1 articles/models.py
  2. +2 −1 templates/tags/tag.active_news_block.html
View
@@ -26,7 +26,7 @@ class Article(models.Model):
published_at = models.DateField(auto_now_add=True, verbose_name="Date of publication")
is_active = models.BooleanField(default=False, db_index=True, verbose_name="Active")
logo = models.ImageField(upload_to='logo/', blank=True, null=True, verbose_name="Logo")
- card = models.ImageField(upload_to='card/', blank=True, null=True, verbose_name="Card")
+ card = models.ImageField(upload_to='card/', blank=True, null=True, verbose_name="Изображение карты или изображение для 'Акции и Спецпредложения'")
class Meta:
verbose_name = "Article"
@@ -5,7 +5,8 @@
{% for item in objects %}
<li>
<a href="/article/{{ item.slug }}">{{ item.title }}</a>
- <span>{{ item.content|safe|truncatewords_html:35 }}</span>
+ <img src="/media/{{ item.card }}" width="280px">
+ <span>{{ item.annotation|safe|truncatewords_html:35 }}</span>
</li>
{% endfor %}

0 comments on commit 32ecfba

Please sign in to comment.