Skip to content

Commit c71696a

Browse files
committed
Fixed a typo around vars and requires_system_checks handling
1 parent e87d23d commit c71696a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

devserver/management/commands/runserver.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ def __init__(self):
9191
# `requires_system_checks`. If both options are present, an error is
9292
# raised. BaseCommand sets requires_system_checks in >= Django 1.7.
9393
if hasattr(self, 'requires_system_checks'):
94-
requires_system_checks = False
94+
self.requires_system_checks = False
9595
else:
96-
requires_model_validation = False # Django < 1.7
96+
self.requires_model_validation = False # Django < 1.7
9797
super(Command, self).__init__()
9898

9999
def add_arguments(self, parser):
@@ -115,7 +115,7 @@ def run_from_argv(self, argv):
115115
args = cmd_options.pop('args', ())
116116
else:
117117
options, args = parser.parse_args(argv[2:], options)
118-
cmd_options = var(options)
118+
cmd_options = vars(options)
119119

120120
handle_default_options(options)
121121
self.execute(*args, **options.__dict__)

0 commit comments

Comments
 (0)