From e7fad86347d8200d5ce5d988da10a225de2aa2f0 Mon Sep 17 00:00:00 2001 From: Fabien BOURGEOIS Date: Thu, 29 Mar 2018 07:56:20 +0200 Subject: [PATCH] [FIX]GOLEM Resource Option : need unicode string to handle non-ascii / special characters --- golem_resource_option/models/golem_resource_option_selection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/golem_resource_option/models/golem_resource_option_selection.py b/golem_resource_option/models/golem_resource_option_selection.py index c36b1a9..14fb049 100644 --- a/golem_resource_option/models/golem_resource_option_selection.py +++ b/golem_resource_option/models/golem_resource_option_selection.py @@ -36,7 +36,7 @@ class GolemResourceOptionSelection(models.Model): @api.multi def _compute_name(self): for selection in self: - selection.name = "{}/{}".format(selection.resource_id.name, selection.option_id.name) + selection.name = u"{}/{}".format(selection.resource_id.name, selection.option_id.name) _sql_constraints = [ ('unique_selection', "UNIQUE(resource_id, option_id, reservation_id)",