From: Radek Czajka Date: Mon, 22 Jul 2019 08:46:14 +0000 (+0200) Subject: Minor fixes. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/beb5154606f790915bc56b9cb8af824537cc7d7a Minor fixes. --- diff --git a/src/social/admin.py b/src/social/admin.py old mode 100755 new mode 100644 diff --git a/src/social/forms.py b/src/social/forms.py old mode 100755 new mode 100644 diff --git a/src/social/templatetags/social_tags.py b/src/social/templatetags/social_tags.py index a444d6604..90ed51817 100644 --- a/src/social/templatetags/social_tags.py +++ b/src/social/templatetags/social_tags.py @@ -60,7 +60,7 @@ def carousel(context, slug): carousel = None banners = [ item.get_banner() - for item in carousel.carouselitem_set.all() + for item in carousel.carouselitem_set.all().select_related('banner') ] request = context['request'] diff --git a/src/social/urls.py b/src/social/urls.py old mode 100755 new mode 100644 diff --git a/src/social/utils.py b/src/social/utils.py old mode 100755 new mode 100644