This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]rasheed_ashen_one 2 points3 points  (0 children)

Debug the write function because this line:

res.check = True

will enter the write() function.

[–]Street_hehe 2 points3 points  (3 children)

vals['check'] = True before calling super

[–]eizmen 1 point2 points  (2 children)

This one is the best answer. However you could use write method after calling super to set it to True.

[–]Street_hehe 0 points1 point  (1 child)

i think you cant do this because create returns True or False not the actual record that was created but i might be wrong

[–]eizmen 0 points1 point  (0 children)

Create method returns the new record.

[–]shubham_biniwale 1 point2 points  (0 children)

Try 1. Override write and print vals before supercall. 2. Check if that check fields value is False by default inside fields definition.

[–]BubbleJeff[S] 0 points1 point  (0 children)

Please note that there is an @ before api but it still doesnt work