[Fixed]-Can you force a record to be added in one model when a record is created in another in django

1👍

You can do this with post_save signal, or by overriding the model’s save() method.

In post_save() signal method, you can use the created argument to find out whether it’s new object or updated object. In overridden save() method, that would be done with the condition: if not self.pk:.

Leave a comment