tests/admin_scripts/management/commands/label_command.py
raw| 1 | from django.core.management.base import LabelCommand |
| 2 | |
| 3 | |
| 4 | class Command(LabelCommand): |
| 5 | help = "Test Label-based commands" |
| 6 | requires_system_checks = [] |
| 7 | |
| 8 | def handle_label(self, label, **options): |
| 9 | print( |
| 10 | "EXECUTE:LabelCommand label=%s, options=%s" |
| 11 | % (label, sorted(options.items())) |
| 12 | ) |