diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2008-07-11 13:18:19 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2008-07-11 13:18:19 +0000 |
| commit | 8e0b6bdcd5b8f9f63a5f370970c71164d25946a7 (patch) | |
| tree | 04d3541892364dff49e5ac2a10b20171bec5b29f /tests/regressiontests/admin_scripts/management | |
| parent | 4516233f9ef3048735f85703f8dc515160e79de4 (diff) | |
Fixed #6017 -- Modified the Lax parser to allow --settings and the other core management arguments to appear anywhere in the argument list. Thanks to Todd O'Bryan for the suggestion and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7888 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/admin_scripts/management')
| -rw-r--r-- | tests/regressiontests/admin_scripts/management/commands/base_command.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/regressiontests/admin_scripts/management/commands/base_command.py b/tests/regressiontests/admin_scripts/management/commands/base_command.py index 0187a23b29..438f7038ca 100644 --- a/tests/regressiontests/admin_scripts/management/commands/base_command.py +++ b/tests/regressiontests/admin_scripts/management/commands/base_command.py @@ -1,6 +1,12 @@ from django.core.management.base import BaseCommand +from optparse import make_option class Command(BaseCommand): + option_list = BaseCommand.option_list + ( + make_option('--option_a','-a', action='store', dest='option_a', default='1'), + make_option('--option_b','-b', action='store', dest='option_b', default='2'), + make_option('--option_c','-c', action='store', dest='option_c', default='3'), + ) help = 'Test basic commands' requires_model_validation = False args = '[labels ...]' |
