~ubuntuone-pqm-team/django/stable

« back to all changes in this revision

Viewing changes to tests/regressiontests/admin_scripts/management/commands/app_command.py

  • Committer: Matias Bordese
  • Date: 2014-08-21 21:22:40 UTC
  • Revision ID: matias.bordese@canonical.com-20140821212240-tij4ms6qzjbdiioz
Tags: 1.5.9
Imported Django 1.5.9 from released tarball.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from django.core.management.base import AppCommand
 
2
 
 
3
 
 
4
class Command(AppCommand):
 
5
    help = 'Test Application-based commands'
 
6
    requires_model_validation = False
 
7
    args = '[appname ...]'
 
8
 
 
9
    def handle_app(self, app, **options):
 
10
        print('EXECUTE:AppCommand app=%s, options=%s' % (app, sorted(options.items())))
 
11