label_command.py 323 B

12345678910
  1. from django.core.management.base import LabelCommand
  2. class Command(LabelCommand):
  3. help = "Test Label-based commands"
  4. requires_model_validation = False
  5. args = '<label>'
  6. def handle_label(self, label, **options):
  7. print('EXECUTE:LabelCommand label=%s, options=%s' % (label, sorted(options.items())))