Skip to content

Commit

Permalink
fixed 'Actions and ...'
Browse files Browse the repository at this point in the history
  • Loading branch information
Guest007 committed Feb 23, 2014
1 parent 0d2fde6 commit 32ecfba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion articles/models.py
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion templates/tags/tag.active_news_block.html
Expand Up @@ -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 %}
Expand Down

0 comments on commit 32ecfba

Please sign in to comment.