I am using Django-Tenant-Schemas for my multi tenant app.
Now, I have come to face a huge problem.
I need to use @login-required for views. But how to have an admin (the creator & owner of the schema) to only create/register user. If a "register yourself" page is available to all, then anyone can register.
If I can have an admin for each tenant, then I can easily use @required-permission decorator for the "register" view.
Hence, my question is how to create admin/super user for each tenant.
I cannot create the admin from the "create database"/"register your firm" (which is getting dynamically created from the register page, linked to the landing page) view as it is in the public schema.