mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
Fixed an import that required celery to be installed
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
import celery.exceptions
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.contrib import messages
|
from django.contrib import messages
|
||||||
from django.http import JsonResponse
|
from django.http import JsonResponse
|
||||||
@@ -42,6 +41,8 @@ class AsyncAction:
|
|||||||
|
|
||||||
def get_result(self, request):
|
def get_result(self, request):
|
||||||
from celery.result import AsyncResult
|
from celery.result import AsyncResult
|
||||||
|
import celery.exceptions
|
||||||
|
|
||||||
res = AsyncResult(request.GET.get('async_id'))
|
res = AsyncResult(request.GET.get('async_id'))
|
||||||
if 'ajax' in self.request.GET:
|
if 'ajax' in self.request.GET:
|
||||||
if not res.ready():
|
if not res.ready():
|
||||||
|
|||||||
Reference in New Issue
Block a user