Minor fixes.
authorRadek Czajka <rczajka@rczajka.pl>
Mon, 22 Jul 2019 08:46:14 +0000 (10:46 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Mon, 22 Jul 2019 08:46:14 +0000 (10:46 +0200)
src/social/admin.py [changed mode: 0755->0644]
src/social/forms.py [changed mode: 0755->0644]
src/social/templatetags/social_tags.py
src/social/urls.py [changed mode: 0755->0644]
src/social/utils.py [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index a444d66..90ed518 100644 (file)
@@ -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']
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)