diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-12-28 09:53:02 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-12-28 09:53:02 +0100 |
| commit | c81fae6b9588ab9ef1edd7309c00e72a87154bc1 (patch) | |
| tree | c8674ce1fdeebb3bf88337289221e719362672b0 /tests/admin_scripts/management/commands | |
| parent | a7add2f2965dac3c2f63b1459c8bde725250c977 (diff) | |
Used app_label instead of appname.
The last component of the dotted path to the application module is
consistently referenced as the application "label". For instance it's
AppConfig.label. appname could be confused with AppConfig.name, which is
the full dotted path.
Diffstat (limited to 'tests/admin_scripts/management/commands')
| -rw-r--r-- | tests/admin_scripts/management/commands/app_command.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/admin_scripts/management/commands/app_command.py b/tests/admin_scripts/management/commands/app_command.py index 5f221f48ee..4706645484 100644 --- a/tests/admin_scripts/management/commands/app_command.py +++ b/tests/admin_scripts/management/commands/app_command.py @@ -4,7 +4,7 @@ from django.core.management.base import AppCommand class Command(AppCommand): help = 'Test Application-based commands' requires_model_validation = False - args = '[appname ...]' + args = '[app_label ...]' def handle_app_config(self, app_config, **options): print('EXECUTE:AppCommand name=%s, options=%s' % (app_config.name, sorted(options.items()))) |
