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

Could not dump objects until I modified dump_object.py as per comment #77

Open
chr15m opened this issue Jun 9, 2020 · 1 comment
Open

Comments

@chr15m
Copy link

chr15m commented Jun 9, 2020

Everything I tried would yield the following error, even on internal Django models:

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 ...]>

Then I tried the fix from this comment on closed issue #45 and after that I was able to dump objects successfully.

I don't understand what that args line is doing. I could submit a PR removing it but it would be good to know why it is there first.

Django version is 1.9.1.

@chr15m
Copy link
Author

chr15m commented Jul 28, 2020

For anyone else who runs into this or #45, a workaround is to use JSON id lookups instead of ID. E.g. --query '{"pk__in": [1]}'.

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