Ticket #1989: action_mapping.patch

File action_mapping.patch, 1.0 KB (added by k.shaposhnikov@…, 18 years ago)
  • django/core/management.py

     
    12071207        if action not in NO_SQL_TRANSACTION:
    12081208            print style.SQL_KEYWORD("COMMIT;")
    12091209
    1210 def execute_manager(settings_mod):
     1210def execute_manager(settings_mod, action_mapping = DEFAULT_ACTION_MAPPING):
    12111211    # Add this project to sys.path so that it's importable in the conventional
    12121212    # way. For example, if this file (manage.py) lives in a directory
    12131213    # "myproject", this code would add "/path/to/myproject" to sys.path.
     
    12201220    # Set DJANGO_SETTINGS_MODULE appropriately.
    12211221    os.environ['DJANGO_SETTINGS_MODULE'] = '%s.settings' % project_name
    12221222
    1223     action_mapping = DEFAULT_ACTION_MAPPING.copy()
     1223    action_mapping = action_mapping.copy()
    12241224
    12251225    # Remove the "startproject" command from the action_mapping, because that's
    12261226    # a django-admin.py command, not a manage.py command.
Back to Top