summaryrefslogtreecommitdiff
path: root/tests/regressiontests/admin_scripts/management/commands/app_command.py
blob: d26df12642973301bee2a0824e36a7c7d874920a (plain)
1
2
3
4
5
6
7
8
9
10
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())))