Make get_or_create use code in defaults.

In the original form, `get_or_create` would always create because the `code` was randomly generated.
This fix will only use the code on the creation of a new referral.