File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
djcelery/management/commands Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 11
11
class Command (CeleryCommand ):
12
12
"""The celery command."""
13
13
help = 'celery commands, see celery help'
14
- options = (CeleryCommand .options +
15
- base .get_options () +
16
- base .preload_options )
14
+ cc_options = CeleryCommand .options if CeleryCommand .options else []
15
+ base_options = base .get_options () if base .get_options () else []
16
+ if hasattr (base , "preload_options" ):
17
+ preload_options = base .preload_options if base .preload_options else []
18
+ else :
19
+ preload_options = []
20
+ preload_options = base .preload_options if base .preload_options else []
21
+ options = (cc_options +
22
+ base_options +
23
+ preload_options )
17
24
18
25
def run_from_argv (self , argv ):
19
26
argv = self .handle_default_options (argv )
You can’t perform that action at this time.
0 commit comments