We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 830597a commit 5d1ecb0Copy full SHA for 5d1ecb0
djcelery/management/commands/celery.py
@@ -11,9 +11,16 @@
11
class Command(CeleryCommand):
12
"""The celery command."""
13
help = 'celery commands, see celery help'
14
- options = (CeleryCommand.options +
15
- base.get_options() +
16
- base.preload_options)
+ cc_options = CeleryCommand.options if CeleryCommand.options else []
+ base_options = base.get_options() if base.get_options() else []
+ if hasattr(base, "preload_options"):
17
+ preload_options = base.preload_options if base.preload_options else []
18
+ else:
19
+ preload_options = []
20
21
+ options = (cc_options +
22
+ base_options +
23
+ preload_options)
24
25
def run_from_argv(self, argv):
26
argv = self.handle_default_options(argv)
0 commit comments