Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit 1c47b21f52e6797b4da3de079d4d15fcb967f747 1 parent b9113ca
Russell Keith-Magee authored June 13, 2008
8  django/core/management/commands/dumpdata.py
@@ -18,10 +18,10 @@ class Command(BaseCommand):
18 18
     def handle(self, *app_labels, **options):
19 19
         from django.db.models import get_app, get_apps, get_models
20 20
 
21  
-        format = options['format']
22  
-        indent = options['indent']
23  
-        exclude = options['exclude']
24  
-        show_traceback = options['traceback']
  21
+        format = options.get('format','json')
  22
+        indent = options.get('indent',None)
  23
+        exclude = options.get('exclude',[])
  24
+        show_traceback = options.get('traceback', False)
25 25
 
26 26
         excluded_apps = [get_app(app_label) for app_label in exclude]
27 27
 

0 notes on commit 1c47b21

Please sign in to comment.
Something went wrong with that request. Please try again.