3👍
try using transaction.atomic()
with transaction.atomic():
serializer.save()
transaction.set_rollback(True)
Source:stackexchange.com
3👍
try using transaction.atomic()
with transaction.atomic():
serializer.save()
transaction.set_rollback(True)