[Answer]-Django save form with User foreign key

1👍

The Profile instance is missing from the form. You should pass it as the instance parameter, otherwise the form tries to create a new instance (which doesn’t have a user_id).

👤knbk

Leave a comment