fix note api
This commit is contained in:
parent
aa7ca832d6
commit
04dc3123e4
1 changed files with 1 additions and 0 deletions
|
@ -64,6 +64,7 @@ def add_note_for_item(request, item_uuid: str, n_in: NoteInSchema):
|
||||||
return 404, {"message": "Item not found"}
|
return 404, {"message": "Item not found"}
|
||||||
note = Note()
|
note = Note()
|
||||||
note.item = item
|
note.item = item
|
||||||
|
note.owner = request.user.identity
|
||||||
note.title = n_in.title
|
note.title = n_in.title
|
||||||
note.content = n_in.content
|
note.content = n_in.content
|
||||||
note.sensitive = n_in.sensitive
|
note.sensitive = n_in.sensitive
|
||||||
|
|
Loading…
Add table
Reference in a new issue