Open feenes opened 4 years ago
Same here.
If I try to
django-admin tenant_command changepassword api.user --schema=obaldo
I get an error message:
django-admin tenant_command: error: unrecognized arguments: api.user
I guess tennant commando must be told that it has to call the changepassword with the following argument and not to use that argument itself.
Version according to pipenv: 1.10.0
I had conflict with my own parameter name 's'.
Workaround: when I changed it to other letter, now it works as expected, eg. can invoke
python manage.py tenant_command mycommand -myparam --schema:tenant1
As a workaround, you can use:-
python manage.py tenant_command --schema=tenant shell
>>> from django.core.management import call_command
>>> call_command('command_expecting_arguments', 'argument1')
Fix is not included in 1.12. So as a workaround for dumpdata use this :
python manage.py tenant_command --schema=tenant shell
>>> from django.core.management import call_command
>>> with open('model_name.json', 'w') as f:
call_command('dumpdata', 'app_name.model_name', stdout=f)
I'm having a management command of the kind
When trying to call with
manage.py tenant_command test_command -s tenant 123
I receive
I also tried
manage.py tenant_command test_command -- 123
Also without success.
Is there any fix / work around?
This can also be reproduced with a simple command like:
which will give: