django-fixture-magic icon indicating copy to clipboard operation
django-fixture-magic copied to clipboard

dump_object args parsing problem

Open skabbit opened this issue 7 years ago • 0 comments

Django==1.8.18 Running ./manage.py dump_object declarations.section 25976, getting error:

CommandError: object_class must be provided in the following format: app_name.model_name
Try calling dump_object with --help argument or use the following arguments:
 <[--kitchensink | -k] [--natural] [--query] object_class id [id ...]>

Investigated problem, and solved by defining named --ids argument (dump_object.py:30):

        parser.add_argument('--ids', dest='ids', default=None, nargs='*',
                            help='Use a list of ids e.g. 0 1 2 3')

skabbit avatar Nov 26 '17 23:11 skabbit