mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Migrated built-in AppCommands to use handle_app_config.
This commit is contained in:
parent
bb8ec71f61
commit
a7add2f296
9 changed files with 51 additions and 26 deletions
|
@ -6,5 +6,5 @@ class Command(AppCommand):
|
|||
requires_model_validation = False
|
||||
args = '[appname ...]'
|
||||
|
||||
def handle_app(self, app, **options):
|
||||
print('EXECUTE:AppCommand app=%s, options=%s' % (app, sorted(options.items())))
|
||||
def handle_app_config(self, app_config, **options):
|
||||
print('EXECUTE:AppCommand name=%s, options=%s' % (app_config.name, sorted(options.items())))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue