File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,9 @@ def handle_default_options(self, argv):
80
80
acc = []
81
81
broker = None
82
82
for i , arg in enumerate (argv ):
83
+ # --settings and --pythonpath are also handled
84
+ # by BaseCommand.handle_default_options, but that is
85
+ # called with the resulting options parsed by optparse.
83
86
if '--settings=' in arg :
84
87
_ , settings_module = arg .split ('=' )
85
88
os .environ ['DJANGO_SETTINGS_MODULE' ] = settings_module
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ class Command(CeleryCommand):
18
18
19
19
def run_from_argv (self , argv ):
20
20
argv = self .handle_default_options (argv )
21
+ if self .requires_model_validation :
22
+ self .validate ()
21
23
base .execute_from_commandline (
22
24
['{0[0]} {0[1]}' .format (argv )] + argv [2 :],
23
25
)
You can’t perform that action at this time.
0 commit comments