Ticket #13012: get_or_create_fix.patch
File get_or_create_fix.patch, 529 bytes (added by , 15 years ago) |
---|
-
django/db/models/query.py
375 375 transaction.savepoint_rollback(sid, using=self.db) 376 376 try: 377 377 return self.get(**kwargs), False 378 except self.model.DoesNotExist :378 except self.model.DoesNotExist, e: 379 379 raise e 380 380 381 381 def latest(self, field_name=None):