Skip to content
Browse files

Fixed [6932] so that " help dumpdata" works again.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent fbf49df commit b53fac80525ef656dddaa0e88ade258df6f4a8b8 @malcolmt malcolmt committed
Showing with 2 additions and 3 deletions.
  1. +2 −3 django/core/management/commands/
5 django/core/management/commands/
@@ -4,10 +4,9 @@
from optparse import make_option
class Command(BaseCommand):
- serializer_formats = serializers.get_public_serializer_formats()
option_list = BaseCommand.option_list + (
make_option('--format', default='json', dest='format',
- help='Specifies the output serialization format for fixtures. Formats available: %s' % serializer_formats),
+ help='Specifies the output serialization format for fixtures.'),
make_option('--indent', default=None, dest='indent', type='int',
help='Specifies the indent level to use when pretty-printing output'),
@@ -28,7 +27,7 @@ def handle(self, *app_labels, **options):
# Check that the serialization format exists; this is a shortcut to
# avoid collating all the objects and _then_ failing.
- if format not in self.serializer_formats:
+ if format not in serializers.get_public_serializer_formats():
raise CommandError("Unknown serialization format: %s" % format)

0 comments on commit b53fac8

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