From 805f9b832c5a5f4a7a08c7d00b503f212e017731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Barrag=C3=A1n=20Merino?= Date: Tue, 4 Mar 2014 11:54:31 +0100 Subject: [PATCH] Fixed some bugs --- taiga/projects/template_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/taiga/projects/template_manager.py b/taiga/projects/template_manager.py index 63a7d0b4..c95d6e32 100644 --- a/taiga/projects/template_manager.py +++ b/taiga/projects/template_manager.py @@ -2,9 +2,9 @@ from taiga.projects.models import UserStoryStatus class ProjectTemplateManager(): def apply(self, template, project): - if not hasattr(self, template): + if not hasattr(self, "template"): return False - template = getattr(self, template) + template = getattr(self, "template") template(project) def legal(self, project):