Suppose I alter an object representing a user’s dog as so in Django:
user.dog.species = "Golden Retriever"
To save this information, should I do this:
user.dog.save()
or this:
user.save()
Would both work since saving the user also implies saving child relationships? Thank you.
Django’s ORM does not save the whole object tree, so if you create a new
userand a newdogyou would need to save both.