Many clone includes the values, so it is unexpected that ForeignKey doesn't behave the same way.
This is more of a problem when cloning a DataObject which contains a ForeignKey, only to find that the val is missing and .get() needs to be called, which requires fetching from the database again.
Also often I find the custom Debug formatter of ForeignKey leaves me wondering if the .val has been fetched.
Many
clone includes the values, so it is unexpected thatForeignKey
doesn't behave the same way. This is more of a problem when cloning a DataObject which contains a ForeignKey, only to find that theval
is missing and.get()
needs to be called, which requires fetching from the database again.Also often I find the custom Debug formatter of
ForeignKey
leaves me wondering if the.val
has been fetched.