Difference in Django object creation call

Posted by PhilGo20 on Stack Overflow See other posts from Stack Overflow or by PhilGo20
Published on 2010-03-05T17:36:44Z Indexed on 2010/03/08 9:21 UTC
Read the original article Hit count: 269

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 something.

thanks

© Stack Overflow or respective owner

Related posts about django-models

Related posts about beginner