You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -220,7 +220,7 @@ Warning: read the django documentation to understand the impacts of using ``SESS
220
220
.. _migrating-and-creating-the-public-tenant:
221
221
222
222
Migrating and Creating the Public Tenant
223
-
====================================
223
+
========================================
224
224
225
225
Django tenant schemas requires ``migrate_schemas`` to be called and a public tenant to be created. Here is an example of creating the public tenant along with a default 'system' tenant owner.
226
226
@@ -238,7 +238,7 @@ Provisioning a Tenant
238
238
239
239
Here is an example to provision a tenant with the url "evilcorp.example.com". The Domain Name is taken from the ``TENANT_USERS_DOMAIN`` Variable in the Django settings file.
240
240
241
-
The user with the specified email will not be created by the ``provision_tenant`` command and has to exist beforhand. The user will be the owner of the tenant. In this example the Adminuser from the section above is used. To create another user see `Creating a User Section <createuser_>`_
241
+
The user with the specified email will not be created by the ``provision_tenant`` command and has to exist beforhand. The user will be the owner of the tenant. In this example the Adminuser from the section above is used. To create another user see `Creating a User Section <creating-a-user_>`_
242
242
243
243
.. code-block:: python
244
244
@@ -254,11 +254,10 @@ The user with the specified email will not be created by the ``provision_tenant`
254
254
Creating a User
255
255
===============
256
256
257
-
All users apart from the first public tenant user (see `Migrating and Creating the Public Tenant <migrating_>`_ for creating the first public tenant user) should be created through the object manager.
257
+
All users apart from the first public tenant user (see `Migrating and Creating the Public Tenant <migrating-and-creating-the-public-tenant_>`_ for creating the first public tenant user) should be created through the object manager.
258
258
259
259
.. code-block:: python
260
260
261
261
user = TenantUser.objects.create_user(email="[email protected]", password='password', is_active=True)
262
262
263
263
Currently all users rely on an email for the username.
0 commit comments