[Answer]-500 code when model instance with foreign key is created

1👍

You should pass the User instance to the ContactRequest constructor:

contact_request = ContactRequest(message=message, user=new_user)

Leave a comment