1👍
If you’re using a ModelForm, you have three choices:
- Set the profile when you instantiate the form
- Create the object instance in a view, but not commit it, then set the profile property and
commit the save - Pass the profile to the save method, and set the property before
calling super
If you’re just dealing with a Model, you have two choices:
- Pass the profile in when you instantiate the object
- Set the profile on an instance of your object before you call save
Source:stackexchange.com