re: Django inline formsets with Class-based views and crispy forms VIEW POST

FULL DISCUSSION
 

Hi! Thanks Xenia. A quick question - why do you use with transaction.atomic(): in your form_valid() function?

 

Hi!

That guarantees the transaction's atomicity, which is a database property.
Take a look at the explanation in Django docs

code of conduct - report abuse