code: def commit(using=None):
      
      try:
          django.db.transaction.commit(using)
      except django.db.transaction.TransactionManagementError:
          pass
docs: Possibility of calling transaction.commit() in new Django versions (in atomic block).