2008-07-10 20:12:41 +08:00
|
|
|
from django.core.management.base import LabelCommand
|
|
|
|
|
2011-10-14 02:51:33 +08:00
|
|
|
|
2008-07-10 20:12:41 +08:00
|
|
|
class Command(LabelCommand):
|
|
|
|
help = "Test Label-based commands"
|
|
|
|
requires_model_validation = False
|
|
|
|
args = '<label>'
|
|
|
|
|
|
|
|
def handle_label(self, label, **options):
|
2012-04-29 00:02:01 +08:00
|
|
|
print('EXECUTE:LabelCommand label=%s, options=%s' % (label, sorted(options.items())))
|