Добавлен функционал деактивации/реактивации ролей пользователей

This commit is contained in:
2025-12-13 01:25:19 +03:00
parent 6470fb7588
commit a1d77d778a
10 changed files with 666 additions and 60 deletions

View File

@@ -42,3 +42,8 @@ client = Client.objects.get(schema_name='public')
with schema_context(client):
call_command('createsuperuser')
exit()
# 7. Восстановление стандартных ролей для конкретного тенанта
# Если роли были удалены или нужно их пересоздать:
python manage.py tenant_command init_roles --schema=anatol
# Где 'anatol' - имя схемы тенанта (schema_name)