Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serial field won't updates automatically aftes saving in Postgres #982

Open
metakot opened this issue Apr 11, 2024 · 0 comments
Open

Serial field won't updates automatically aftes saving in Postgres #982

metakot opened this issue Apr 11, 2024 · 0 comments

Comments

@metakot
Copy link

metakot commented Apr 11, 2024

piccolo==1.5.0
piccolo_admin==1.3.2
piccolo_api==1.4.0

So I have a table in Postgres:

class Example(Table):
    number = Serial()

Saving it

example = Example()
await example.save()
print(example.number)

it just prints

DEFAULT

refreshing it with await example.refresh() fills the field with value.
I think this is a low priority issue but confusing nonetheless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant