+
Skip to content

fix create method for non-integer pk #119

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

Merged
merged 3 commits into from
Oct 3, 2021

Conversation

aminalaee
Copy link
Member

@aminalaee aminalaee commented Oct 1, 2021

Fixes #47

Queryset method create does not work with non-integer primary keys.
This PR will check if PK is not in create method arguments, use the one assigned from db, otherwise use the one passed in arguments.

@aminalaee aminalaee merged commit df2fe27 into encode:master Oct 3, 2021
@aminalaee aminalaee deleted the fix-create-method-non-integer-pk branch October 3, 2021 12:28
@aminalaee aminalaee mentioned this pull request Oct 30, 2021
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

Successfully merging this pull request may close these issues.

Unexpected model create behaviour for non-integer primary keys
1 participant
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载