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
make empty lists return null or default #1369
Conversation
Thanks for fixing this. Would you mind if I write some extra tests for this case and open a PR towards your branch? |
Sure, go on! I would appreciate it! |
I have some difficulty in reproducing the issue. Am I correct that your setup looks like this:
And that your |
I think I got it: the ForeignKey relation/column is defined in the 'right' model? I added a test for it here: it fails without your fix and passes with it. For some reason I don't see your fork when trying to create a PR, but if you want you can cherry pick the commit. |
thanks @Terr i added your test to the PR |
Is this awaiting further review, or tests? |
@thongly It looks like the CI build was just due to the multiprocessing race condition. If you wanted to rebase this against the current master branch and confirm that the tests pass that'd be helpful |
The tests just passed after a restart |
@acdha - Are you planning on pushing a release soon too? Wondering if we need to pip install the branch-specific version or whether we can wait on your official release. Please advise if you have a ETA. cc: @StevenFerreira |
If you need it right now, I would use a pinned commit. I would like to get
a release fairly soon but didn't have a specific date in mind.
|
This fix resolves the issue with integerFields trying to convert empty list in case a Nnull value is returned from the datasource
Tests are passing