Closed begriffs closed 5 years ago
@begriffs you need a MIDDLEWARE like this to identify the user's tenant but it will only serve for queries:
To add a new record you will need to inform the current tenant:
Product.objects.create(name="nice product", description="buy me", quantity = 1, tenant_id=get_current_tenant())
In my app Store is the tenant. Trying to create a product
The result is