File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
devserver/management/commands Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -91,9 +91,9 @@ def __init__(self):
91
91
# `requires_system_checks`. If both options are present, an error is
92
92
# raised. BaseCommand sets requires_system_checks in >= Django 1.7.
93
93
if hasattr (self , 'requires_system_checks' ):
94
- requires_system_checks = False
94
+ self . requires_system_checks = False
95
95
else :
96
- requires_model_validation = False # Django < 1.7
96
+ self . requires_model_validation = False # Django < 1.7
97
97
super (Command , self ).__init__ ()
98
98
99
99
def add_arguments (self , parser ):
@@ -115,7 +115,7 @@ def run_from_argv(self, argv):
115
115
args = cmd_options .pop ('args' , ())
116
116
else :
117
117
options , args = parser .parse_args (argv [2 :], options )
118
- cmd_options = var (options )
118
+ cmd_options = vars (options )
119
119
120
120
handle_default_options (options )
121
121
self .execute (* args , ** options .__dict__ )
You can’t perform that action at this time.
0 commit comments