From beb5154606f790915bc56b9cb8af824537cc7d7a Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 22 Jul 2019 10:46:14 +0200 Subject: [PATCH] Minor fixes. --- src/social/admin.py | 0 src/social/forms.py | 0 src/social/templatetags/social_tags.py | 2 +- src/social/urls.py | 0 src/social/utils.py | 0 5 files changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 src/social/admin.py mode change 100755 => 100644 src/social/forms.py mode change 100755 => 100644 src/social/urls.py mode change 100755 => 100644 src/social/utils.py 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 -- 2.20.1