-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Fix None UUID ForeignKey serialization #3936
Conversation
As per @tomchristie's comment this might not be the right fix. and
|
Right. Progress. Slapping a breakpoint in where @tomchristie said reveals the problem:
In this case at least |
Where a foreign key is null Thus in 2ef74cf I resolve the I'm happy to adjust the formatting of the Otherwise I think this is probably the right fix. Thoughts? |
Just milestoning this to keep it on the radar. |
@carltongibson does this need a review ? |
I think it's the right fix — but I'd be happy if you or @tomchristie could just think it through... — is there another case we've missed? (Or shall we handle that if/when it comes up) |
It looks good to me. I don't see other cases. On a side note, I'd be interested in discussing the design (ping @tomchristie) esp. why this has to be in the serializer as opposed as @carltongibson's initial proposal - which was to handle that within the field. |
Fix None UUID ForeignKey serialization
Nice job 👍 |
Replaces #3915