The upload widget has the option to include a notification URL and that can be configured in your upload preset settings. This notification URL will return a response to your server endpoint that can be used to save the image model.
To generate the necessary CloudinaryField from the upload response, a CloudinaryResource object can be used.
from cloudinary import CloudinaryResource
. . .
json_response = { "public_id": "test", "type": "upload", . . . }
# Populate a CloudinaryResource object using the upload response
result = CloudinaryResource(public_id=json_response['public_id'], type=json_response['type'], resource_type=json_response['resource_type'], version=json_response['version'], format=json_response['format'])
str_result = result.get_prep_value() # returns a CloudinaryField string e.g. "image/upload/v123456789/test.png"
# Save the result
p = Photo(title="title",image=str_result)
p.save() # save result in database