Skip to content

Commit

Permalink
docs: fix link references
Browse files Browse the repository at this point in the history
  • Loading branch information
Dresdn committed Oct 1, 2022
1 parent 191eb21 commit e712db3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ Warning: read the django documentation to understand the impacts of using ``SESS
.. _migrating-and-creating-the-public-tenant:

Migrating and Creating the Public Tenant
====================================
========================================

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.

Expand All @@ -238,7 +238,7 @@ Provisioning a Tenant

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.

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_>`_
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_>`_

.. code-block:: python
Expand All @@ -254,11 +254,10 @@ The user with the specified email will not be created by the ``provision_tenant`
Creating a User
===============

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.
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.

.. code-block:: python
user = TenantUser.objects.create_user(email="[email protected]", password='password', is_active=True)
Currently all users rely on an email for the username.

0 comments on commit e712db3

Please sign in to comment.