summaryrefslogtreecommitdiff
path: root/tests/admin_scripts/management/commands/app_command.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/admin_scripts/management/commands/app_command.py')
-rw-r--r--tests/admin_scripts/management/commands/app_command.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/admin_scripts/management/commands/app_command.py b/tests/admin_scripts/management/commands/app_command.py
new file mode 100644
index 0000000000..d26df12642
--- /dev/null
+++ b/tests/admin_scripts/management/commands/app_command.py
@@ -0,0 +1,11 @@
+from django.core.management.base import AppCommand
+
+
+class Command(AppCommand):
+ help = 'Test Application-based commands'
+ requires_model_validation = False
+ args = '[appname ...]'
+
+ def handle_app(self, app, **options):
+ print('EXECUTE:AppCommand app=%s, options=%s' % (app, sorted(options.items())))
+