2👍
✅
You could create the FK
object in the view
method, or in case of tastypie, hydrate.
By not putting the FK object creation logic in the save
method of the model, you dont mix up the logic. In other words, Avoid creating an object of a one class, in another classes’ save
method.
That way the logic is clean, and all you have to do is bundle.data['contact'] = Originator.objects.get_or_create()
instead of overriding the save
Source:stackexchange.com