Fixes #292, Use self.object instead of the userid param that has been removed

This commit is contained in:
2012-08-08 17:25:36 +01:00
parent 7a0076be8e
commit 33e1b05453

View File

@@ -123,7 +123,7 @@ class EVEAPIRefreshView(LoginRequiredMixin, SingleObjectMixin, View):
try: try:
acc = task.wait(30) acc = task.wait(30)
except (celery.exceptions.TimeoutError, DocumentRetrievalError): except (celery.exceptions.TimeoutError, DocumentRetrievalError):
acc = EVEAccount.objects.get(pk=userid) acc = EVEAccount.objects.get(pk=self.object.pk)
ret = [] ret = []
if acc: if acc:
ret = [acc] ret = [acc]