瀏覽代碼

Fix check for default app to succeed even if proxy (#3482)

Conrad Kramer 8 年之前
父節點
當前提交
ca6b4b5383
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      celery/fixups/django.py

+ 1 - 1
celery/fixups/django.py

@@ -46,7 +46,7 @@ class DjangoFixup(object):
 
     def __init__(self, app):
         self.app = app
-        if default_app is None:
+        if not default_app:
             self.app.set_default()
         self._worker_fixup = None