I'd like to know if there's a difference between the following two calls to create an object in Django
Animal.objects.create(name="cat", sound="meow")
and
Animal(name="cat", sound="meow")
I see both in test cases and I want to make sure I am not missing some开发者_StackOverflowthing.
thanks
The former also inserts a row in the database as well as creating the object.
精彩评论