From 51803eebecc742bb60e3ecabaffe92bdb3ff7489 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sat, 13 Aug 2016 22:23:02 +0200 Subject: [PATCH] fix first param type of loader.select_template, fixes #255 must be a list of templates names, not a single template names. --- nsupdate/main/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nsupdate/main/views.py b/nsupdate/main/views.py index c40297e..6132149 100644 --- a/nsupdate/main/views.py +++ b/nsupdate/main/views.py @@ -91,7 +91,7 @@ class CustomTemplateView(TemplateView): def dispatch(self, *args, **kwargs): self.template_name = 'main/custom/%s' % kwargs.get('template') try: - template.loader.select_template(self.template_name) + template.loader.select_template([self.template_name, ]) return super(CustomTemplateView, self).dispatch(*args, **kwargs) except template.TemplateDoesNotExist: raise Http404