mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Transactiontask (#268)
* Introduce TransactionAwareTask As described in https://blog.hypertrack.io/2016/10/08/dealing-with-database-transactions-in-django-celery/ * Use TransactionAwareTask instead of countdown … to prevent race conditions when using a newly created object in a task.
This commit is contained in:
committed by
Raphael Michel
parent
6c5cd56af7
commit
9db333bf80
@@ -337,7 +337,7 @@ class ImportView(EventPermissionRequiredMixin, ListView):
|
||||
'event': self.request.event.pk,
|
||||
'job': job.pk,
|
||||
'data': parsed
|
||||
}, countdown=1)
|
||||
})
|
||||
return redirect(reverse('plugins:banktransfer:import.job', kwargs={
|
||||
'event': self.request.event.slug,
|
||||
'organizer': self.request.event.organizer.slug,
|
||||
|
||||
Reference in New Issue
Block a user