From 366abfa6250a1fa91a7a1a964874c0c34f8f4343 Mon Sep 17 00:00:00 2001 From: Arthur Gerbaud Date: Sun, 7 Aug 2016 16:28:30 +0200 Subject: [PATCH] small fix --- website/mixins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/mixins.py b/website/mixins.py index a7f2c7e..ea0d06b 100644 --- a/website/mixins.py +++ b/website/mixins.py @@ -134,7 +134,7 @@ class WebsiteAjaxTemplateMixin(WebsiteTemplateMixin): is_ajax = False def dispatch(self, request, *args, **kwargs): - if not hasattr(self, 'content_template'): + if not hasattr(self, 'content_template') or not self.content_template: self.content_template = self.get_content_template() if request.is_ajax(): self.is_ajax = True