Model.natural_key should return a list/tuple

This commit is contained in:
Martin Pépin 2017-08-11 15:42:33 +01:00
parent 714e702af7
commit d4669ec873

View file

@ -95,7 +95,7 @@ class Association(models.Model):
) )
def natural_key(self): def natural_key(self):
return self.name return [self.name]
class Meta: class Meta:
verbose_name = _("association") verbose_name = _("association")