Ticket #13012: get_or_create_fix.patch

File get_or_create_fix.patch, 529 bytes (added by brantley (deadwisdom@…, 15 years ago)

Fix for ticket #13012

  • django/db/models/query.py

     
    375375                transaction.savepoint_rollback(sid, using=self.db)
    376376                try:
    377377                    return self.get(**kwargs), False
    378                 except self.model.DoesNotExist:
     378                except self.model.DoesNotExist, e:
    379379                    raise e
    380380
    381381    def latest(self, field_name=None):
Back to Top