Use sql table after calling the __setup__ super of marketing parameter
It is ModelSQL.__setup__ that fill the _table attribute used in the SQL table. Closes #12773
This commit is contained in:
1 parent
071364744e
commit
f9a638e951
1 file changed
+1
-1
@@ -16,8 +16,8 @@ class Parameter(DeactivableMixin, ModelSQL, ModelView):
|
||||
|
||||
@classmethod
|
||||
def __setup__(cls):
|
||||
t = cls.__table__()
|
||||
super().__setup__()
|
||||
t = cls.__table__()
|
||||
cls._sql_constraints += [
|
||||
('name_unique', Exclude(t, (Lower(t.name), Equal)),
|
||||
'marketing_campaign.msg_parameter_name_unique'),
|
||||
|
||||
Reference in new issue
Block a user