django-role-permissions icon indicating copy to clipboard operation
django-role-permissions copied to clipboard

sync_roles across multitenant app

Open raghunandan13 opened this issue 1 year ago • 1 comments

I have a multi tenant app with each tenant having same db and different schema. i want to use sync_roles management command across all the tenant. I am using django-tenant package. After using sync_roles, roles are synced across public schema only

raghunandan13 avatar Nov 23 '23 09:11 raghunandan13

Hi @raghunandan13, I think you will have to re-implement sync_roles.py to work with multiple schemas. Check how to change schemas manually with django-tenant and adapt the sync_roles code to do that.

fjsj avatar Nov 23 '23 16:11 fjsj