Explorar o código

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

Conrad Kramer %!s(int64=8) %!d(string=hai) anos
pai
achega
ca6b4b5383
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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