Do not write creation values in ModelSingleton
(grafted from 6ba6ad79208e3aa6af62a480f977f30e2a1f64ae) --HG-- branch : 6.0
This commit is contained in:
1 parent
68b7ee2d4e
commit
1666b79a4a
1 file changed
+3
-1
@@ -58,7 +58,9 @@ class ModelSingleton(ModelStorage):
|
||||
singleton = cls.get_singleton()
|
||||
if not singleton:
|
||||
singleton, = cls.create([values])
|
||||
actions = (records, values) + args
|
||||
actions = (records, {}) + args
|
||||
else:
|
||||
actions = (records, values) + args
|
||||
args = []
|
||||
for values in actions[1:None:2]:
|
||||
args.extend(([singleton], values))
|
||||
|
||||
Reference in new issue
Block a user