Goal: support of more than one tenant per server instance HUE-8530
Add an organization model in useradmin/models2.py and have User, Group classes link to it.
Keep all the models in models2.py and do not change the current useradmin/models.py logic so that it is backward compatible.
e.g. How to import the organization models:
from useradmin.models import User, Group
Which under the cover does the switch between regular users and organizational users:
if ENABLE_ORGANIZATIONS.get():
from useradmin.models import User, Group
else:
from django.contrib.auth.models import User, Group
Notes: