/tests/regressiontests/admin_scripts/management/commands/label_command.py
Python | 9 lines | 7 code | 2 blank | 0 comment | 0 complexity | 6f270178b5c8d4d1f5843f3cfcbe1e76 MD5 | raw file
Possible License(s): BSD-3-Clause
- from django.core.management.base import LabelCommand
- class Command(LabelCommand):
- help = "Test Label-based commands"
- requires_model_validation = False
- args = '<label>'
- def handle_label(self, label, **options):
- print 'EXECUTE:LabelCommand label=%s, options=%s' % (label, sorted(options.items()))