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

"tenant_command" + "dumpdata" = doesn't work? #95

Closed
bartmika opened this issue Sep 9, 2016 · 2 comments
Closed

"tenant_command" + "dumpdata" = doesn't work? #95

bartmika opened this issue Sep 9, 2016 · 2 comments

Comments

@bartmika
Copy link

bartmika commented Sep 9, 2016

Hi,

I would like to export data in a tenant schema to a json fixture using dumpdata command which comes with Django.

I am running the following code:

python manage.py tenant_command dumpdata --indent 4 --format=json foundation_tenant.NAICSOption > ~/Desktop/niacsoption.json

And I get the message:

manage.py tenant_command: error: unrecognized arguments: --indent 4 --format=json foundation_tenant.NAICSOption

Does anyone know what I did wrong, or is this a problem with tenant_command?

@rodolfomartinez
Copy link

rodolfomartinez commented Oct 12, 2016

+1 - any ideas @tomturner - a solution would be a huge help!

@tomturner
Copy link
Member

tomturner commented Oct 12, 2016

Fixed in 1.1.9 however the command is a bit different

python manage.py tenant_command dumpdata --indent 4 --format=json -s foundation_tenant.NAICSOption > ~/Desktop/niacsoption.json

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

3 participants