Commit 08438a2c authored by Ale's avatar Ale

fix: Hide not published elements in timeline

parent acfd0460
......@@ -12,7 +12,7 @@ class Map(TemplateView):
def get_context_data(self, *args, **kwargs):
context = super(Map, self).get_context_data(*args, **kwargs)
context['items'] = Testimony.objects.order_by('-creation_date')
context['items'] = Testimony.objects.filter(published=True).order_by('-creation_date')
context['categories'] = TestimonyCategory.objects.all()
context['form'] = TestimonyForm()
return context
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment