title: Django nested transactions - “with transaction.atomic()”
body: <p>I would like to know if I have something like this:</p>
  
  <pre><code>def functionA():
      with transaction.atomic():
          #save something
          functionB()
  
  def functionB():
      with transaction.atomic():
          #save another thing
  </code></pre>
  
  <p>Someone knows what will happen? If functionB fails, functionA will rollback too?</p>
  
  <p>Thank you!</p>