NOT NULL constraint failed

You’ll want to set a value on that field.

(In any view, how do you know who the user is making a request?)

Also see the docs on the save() method, particularly the text after the first example block and the second example.