forked from DGNum/gestioCOF
Model.natural_key should return a list/tuple
This commit is contained in:
parent
714e702af7
commit
d4669ec873
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue