Skip to content
Browse files

BUGFIX: Solved unsettled reference between Sliders and Galleries

  • Loading branch information...
1 parent 13b484d commit f3adb868529818295fe86a075b969e36d57d6083 David Codesido committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 cms_pictures_slider/cms_plugins.py
View
2 cms_pictures_slider/cms_plugins.py
@@ -11,7 +11,7 @@ class CMSSliderPlugin(CMSPluginBase):
def render(self, context, instance, placeholder):
context.update({
'slider':instance.slider,
- 'pictures':SliderPicture.objects.all(),
+ 'pictures':SliderPicture.objects.filter(gallery=instance.slider),
'object':instance,
'placeholder':placeholder
})

0 comments on commit f3adb86

Please sign in to comment.
Something went wrong with that request. Please try again.