title: is it correct to apply transaction atomic inside form?
body: <p>I have a <code>ModelForm</code> where I want to override save() method to create related objects. I need that in <code>transaction.atomic()</code></p>
  
  <p>is it correct to apply it like this :</p>
  
  <pre><code>class MyForm(ModelForm):
      @transaction.atomic
      def save(self, commit):
           self.instance.save()
           # and create related objects using self.instance..
  </code></pre>
  
  <p>Cause I've always seen that it is applied on the view, but my view is class based so I can't apply this decorator. and it also seems logical to me to apply it in the actual method which does the saves.
  Second, what is the 'depth' of the transaction atomic, if I apply it to view, I guess it apply to any call from there?</p>