Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

Fix pk read only: now primary key can be written as a custom value#163

Open
artemowkin wants to merge 1 commit intoencode:masterfrom
artemowkin:master
Open

Fix pk read only: now primary key can be written as a custom value#163
artemowkin wants to merge 1 commit intoencode:masterfrom
artemowkin:master

Conversation

@artemowkin
Copy link

Now primary key isn't a read only field. And if user tries to create a new model with non-integer (for example, UUID) field without default value, ValueError will be raised.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant