full-stack-fastapi-template icon indicating copy to clipboard operation
full-stack-fastapi-template copied to clipboard

id should not be attached to ItemCreate

Open timhughes opened this issue 4 years ago • 0 comments

I don't believe that we should be supplying id at this point as that is an auto increment column. I think what is actually happening here is we are setting it to the builtin function id https://docs.python.org/3/library/functions.html#id

https://github.com/tiangolo/full-stack-fastapi-postgresql/blob/490c554e23343eec0736b06e59b2108fdd057fdc/%7B%7Bcookiecutter.project_slug%7D%7D/backend/app/app/tests/utils/item.py#L17

timhughes avatar Sep 23 '21 19:09 timhughes