Ticket #17820: 17820.diff

File 17820.diff, 2.0 KB (added by Ramiro Morales, 13 years ago)
  • django/core/management/commands/createcachetable.py

    diff --git a/django/core/management/commands/createcachetable.py b/django/core/management/commands/createcachetable.py
    a b  
    2020    requires_model_validation = False
    2121
    2222    def handle_label(self, tablename, **options):
    23         db = options.get('database', DEFAULT_DB_ALIAS)
     23        db = options.get('database')
    2424        cache = BaseDatabaseCache(tablename, {})
    2525        if not router.allow_syncdb(db, cache.cache_model_class):
    2626            return
  • django/core/management/commands/reset.py

    diff --git a/django/core/management/commands/reset.py b/django/core/management/commands/reset.py
    a b  
    2525            'This command has been deprecated. The command ``flush`` can be used to delete everything. You can also use ALTER TABLE or DROP TABLE statements manually.',
    2626            DeprecationWarning
    2727        )
    28         using = options.get('database', DEFAULT_DB_ALIAS)
     28        using = options.get('database')
    2929        connection = connections[using]
    3030
    3131        app_name = app.__name__.split('.')[-2]
  • django/core/management/commands/runserver.py

    diff --git a/django/core/management/commands/runserver.py b/django/core/management/commands/runserver.py
    a b  
    7272        """
    7373        Runs the server, using the autoreloader if needed
    7474        """
    75         use_reloader = options.get('use_reloader', True)
     75        use_reloader = options.get('use_reloader')
    7676
    7777        if use_reloader:
    7878            autoreload.main(self.inner_run, args, options)
     
    8383        from django.conf import settings
    8484        from django.utils import translation
    8585
    86         threading = options.get('use_threading', False)
     86        threading = options.get('use_threading')
    8787        shutdown_message = options.get('shutdown_message', '')
    8888        quit_command = (sys.platform == 'win32') and 'CTRL-BREAK' or 'CONTROL-C'
    8989
Back to Top