From d4669ec8733372484ea3326ede741d3db1ab9f1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Fri, 11 Aug 2017 15:42:33 +0100 Subject: [PATCH] Model.natural_key should return a list/tuple --- gestion/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gestion/models.py b/gestion/models.py index bdf2aa1c..2183e359 100644 --- a/gestion/models.py +++ b/gestion/models.py @@ -95,7 +95,7 @@ class Association(models.Model): ) def natural_key(self): - return self.name + return [self.name] class Meta: verbose_name = _("association")