Changeset 6937
- Timestamp:
- 12/17/07 05:09:56 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/core/management/commands/dumpdata.py
r6936 r6937 5 5 6 6 class Command(BaseCommand): 7 serializer_formats = serializers.get_public_serializer_formats()8 7 option_list = BaseCommand.option_list + ( 9 8 make_option('--format', default='json', dest='format', 10 help='Specifies the output serialization format for fixtures. Formats available: %s' % serializer_formats),9 help='Specifies the output serialization format for fixtures.'), 11 10 make_option('--indent', default=None, dest='indent', type='int', 12 11 help='Specifies the indent level to use when pretty-printing output'), … … 29 28 # Check that the serialization format exists; this is a shortcut to 30 29 # avoid collating all the objects and _then_ failing. 31 if format not in se lf.serializer_formats:30 if format not in serializers.get_public_serializer_formats(): 32 31 raise CommandError("Unknown serialization format: %s" % format) 33 32
