From 6682e37e9266e44f78676b04bba306575feff514 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Barrag=C3=A1n=20Merino?= Date: Tue, 4 Mar 2014 10:44:07 +0100 Subject: [PATCH] Fixed tests one more time (broken in commit 518c97d9) --- taiga/projects/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taiga/projects/models.py b/taiga/projects/models.py index 65edd977..58f21e2c 100644 --- a/taiga/projects/models.py +++ b/taiga/projects/models.py @@ -587,6 +587,6 @@ def project_post_save(sender, instance, created, **kwargs): instance.save() from taiga.projects.template_manager import ProjectTemplateManager - if instance.template: + if hasattr(instance, "template"): template_manager = ProjectTemplateManager() template_manager.apply(instance.template, instance)