summaryrefslogtreecommitdiff
path: root/tests/admin_scripts/management/commands/app_command.py
blob: 5f221f48eebe5d1ee6e5dcc9e91818dbd6d595ff (plain)
1
2
3
4
5
6
7
8
9
10
from django.core.management.base import AppCommand


class Command(AppCommand):
    help = 'Test Application-based commands'
    requires_model_validation = False
    args = '[appname ...]'

    def handle_app_config(self, app_config, **options):
        print('EXECUTE:AppCommand name=%s, options=%s' % (app_config.name, sorted(options.items())))