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"
|
2014-01-20 10:45:21 +08:00
|
|
|
requires_system_checks = False
|
2008-07-10 20:12:41 +08:00
|
|
|
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())))
|