mirror of https://github.com/django/django.git
Fixed #7436 -- Corrected a fix from [7615] that broke some test cases. Don't you just love unintended consequences? Thanks to telenieko for the report, and the buildbot for pointing out my mistake.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7629 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
b9113ca81f
commit
1c47b21f52
|
@ -18,10 +18,10 @@ class Command(BaseCommand):
|
||||||
def handle(self, *app_labels, **options):
|
def handle(self, *app_labels, **options):
|
||||||
from django.db.models import get_app, get_apps, get_models
|
from django.db.models import get_app, get_apps, get_models
|
||||||
|
|
||||||
format = options['format']
|
format = options.get('format','json')
|
||||||
indent = options['indent']
|
indent = options.get('indent',None)
|
||||||
exclude = options['exclude']
|
exclude = options.get('exclude',[])
|
||||||
show_traceback = options['traceback']
|
show_traceback = options.get('traceback', False)
|
||||||
|
|
||||||
excluded_apps = [get_app(app_label) for app_label in exclude]
|
excluded_apps = [get_app(app_label) for app_label in exclude]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue