Use transaction.atomic in batch uploader.