From 34e3a5f48b76584446bae771e6bc4571263bdf67 Mon Sep 17 00:00:00 2001 From: Serghei MIHAI Date: Mon, 8 Dec 2014 11:19:24 +0100 Subject: [PATCH] data source list extending, instead of appending --- src/cmsplugin_blurp/renderers/data_source_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmsplugin_blurp/renderers/data_source_list.py b/src/cmsplugin_blurp/renderers/data_source_list.py index 1be4972..a59b24a 100644 --- a/src/cmsplugin_blurp/renderers/data_source_list.py +++ b/src/cmsplugin_blurp/renderers/data_source_list.py @@ -13,7 +13,7 @@ class Renderer(data_source.Renderer): context[self.slug] = [] for slug, data in self.get_sources(context): try: - context[self.slug].append(data.content) + context[self.slug].extend(data.content) except Exception as e: log.exception("exception occured while extending the list: %s", e) return super(Renderer, self).render(context)