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

Get rid of terrible _as_pk function (fixes #117, #120, and #135) #138

Merged
merged 1 commit into from
Oct 28, 2015

Conversation

hwkns
Copy link
Contributor

@hwkns hwkns commented Oct 28, 2015

As discussed in #117, #120, and #135, this function makes a couple of faulty assumptions: that the values it receives are text values (not int or NoneType), and that it needs to convert those values into an int for them to be a valid primary key.

This conversion is not necessary, and if it becomes necessary, it should not be performed by the widgets.

@crucialfelix
Copy link
Owner

Thank you ! As I said in #117, I made a mistake by accepting the PR that put that in. It is not the responsibility of the widget to convert the data.

crucialfelix added a commit that referenced this pull request Oct 28, 2015
Get rid of terrible `_as_pk` function (fixes #117, #120, and #135)
@crucialfelix crucialfelix merged commit 6b42163 into crucialfelix:develop Oct 28, 2015
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.

2 participants