Hydration of fields with missing or null values has a lot of corner cases that cause issues. A fix for one would probably fix all of them. Opening this to keep for documenting these issues and discussion.
I have some code here which fixes (some of) those problems for me.
Any tests to go along with that code?
Yes. BTW, there is an issue I opened exactly because of this, #498. Because I found so many edge cases to test, that it would be really great to have some backend agnostic, only through HTTP protocol, test suite.
My workaround: http://boronine.com/2012/10/10/Make-Tastypie-Respect-Blank-Equals-False/
I've used a variation of @boronine's workaround.
Obviously this is an old issue, but it's worth mentioning that this no longer seems to be an issue.
Most of the related issues have been fixed, the rest have been added to milestones. Closing. Thanks for reporting!