You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PiccoloCRUD post_single return id of the inserted row instead of the row #255
@JoshYuJump I think dict is a much better response than list, since we are POST single item. I can make a PR with these changes, but I'm not a maintainer and @dantownsend has to approve changes, if he agrees with these changes.
Activity
sinisaos commentedon Sep 20, 2023
@JoshYuJump Right now you can't because of this line. If we change
to this
we can get the response like this.
{ "id": 1, "name": "testing" }Another option is to not use
PiccoloCRUDand write your own crud methods and use sameto_dict()method.JoshYuJump commentedon Sep 21, 2023
@sinisaos
I'm curious if you have any plans to do this in a future release.
or it's a good practice right now?
sinisaos commentedon Sep 21, 2023
@JoshYuJump I think
dictis a much better response thanlist, since we arePOSTsingle item. I can make a PR with these changes, but I'm not a maintainer and @dantownsend has to approve changes, if he agrees with these changes.