If a deployment has a model_instance_uuid, use that when creating related objects. If it does not, use the UUID of the draft.
For unpublished create drafts, this should create the correct reference, since the UUID of that draft will be persisted to the Deployment model when it is published.
If a deployment has a model_instance_uuid, use that when creating related objects. If it does not, use the UUID of the draft.
For unpublished create drafts, this should create the correct reference, since the UUID of that draft will be persisted to the Deployment model when it is published.