bernardopires / django-tenant-schemas

Tenant support for Django using PostgreSQL schemas.
https://django-tenant-schemas.readthedocs.org/en/latest/
MIT License
1.45k stars 425 forks source link

Parse command through shlex to allow for passing custom parameters into tenant_command #697

Open FreakyBytes opened 9 months ago

FreakyBytes commented 9 months ago

Currently, it's impossible to call into custom commands that have custom parameters. This PR solves that by allowing to pass custom commands like:

./manage.py tenant_command -s tenant "test_command --foo 123"

should fix issue #645