Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dump_object args parsing problem #60

Open
skabbit opened this issue Nov 26, 2017 · 0 comments
Open

dump_object args parsing problem #60

skabbit opened this issue Nov 26, 2017 · 0 comments

Comments

@skabbit
Copy link

skabbit commented Nov 26, 2017

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')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant