Ticket #8419: option1-create-patch.diff
File option1-create-patch.diff, 783 bytes (added by , 16 years ago) |
---|
-
django/db/models/query.py
308 308 and returning the created object. 309 309 """ 310 310 obj = self.model(**kwargs) 311 obj.save( )311 obj.save(force_insert=True) 312 312 return obj 313 313 314 314 def get_or_create(self, **kwargs): -
docs/ref/models/querysets.txt
556 556 and:: 557 557 558 558 p = Person(first_name="Bruce", last_name="Springsteen") 559 p.save( )559 p.save(force_insert=True) 560 560 561 561 are equivalent. 562 562