Commit 1efdf374 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

fixed a couple of bugs in the management module

parent 425bd495
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ class ManagementUtility(management.ManagementUtility):
			);
			sys.exit(1)

		excluded_cmds = getattr(settings, 'EXCLUDED_COMMANDS')
		excluded_cmds = getattr(settings, 'EXCLUDED_COMMANDS', None)
		if excluded_cmds and subcommand in excluded_cmds:
			class DummyCommand(Command):
				def run(self, **opts):
@@ -41,8 +41,7 @@ class ManagementUtility(management.ManagementUtility):
		if subcommand == 'runserver':
			klass = RunserverCommand()
		else:
			klass = super(ManagementUtility, self).fetch_command(
					self, subcommand)
			klass = super(ManagementUtility, self).fetch_command(subcommand)
		return klass