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

Checking for "not value" replaces all the 0's in a numeric import with the default value #364

Closed
wants to merge 1 commit into from

Conversation

aidanlister
Copy link
Contributor

No description provided.

@bmihelac
Copy link
Member

thanks for contribution @aidanlister.

This fix could bring some backward compatibility for some users, so I would like to have tests for this and as well to be sure not to broke again in the future.

@domenkozar
Copy link
Contributor

A better fix would be to use a special value of object() if no value is provided instead of "".

@bmihelac
Copy link
Member

@domenkozar what is special value of object()?

bmihelac added a commit that referenced this pull request Dec 18, 2015
@aidanlister
Copy link
Contributor Author

Something like

Class NoValue(object):
Pass

On Sat, 19 Dec 2015 at 1:48 AM, Bojan Mihelac notifications@github.com
wrote:

@domenkozar https://github.com/domenkozar what is special value of
object()
?


Reply to this email directly or view it on GitHub
#364 (comment)
.

bmihelac added a commit that referenced this pull request Apr 6, 2016
bmihelac added a commit that referenced this pull request Apr 6, 2016
Field constructor `default` argument is NOT_PROVIDED instead of None
Field clean method checks value against `Field.empty_values` [None, '']
@bmihelac
Copy link
Member

bmihelac commented Apr 6, 2016

this should be fixed in e16b7a7. Please reopen if needed

@bmihelac bmihelac closed this Apr 6, 2016
@yozlet yozlet mentioned this pull request Dec 26, 2018
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.

None yet

3 participants