_This is a work in progress ticket, intended to gather user stories for adding multi-tenancy support to Oscar_
Requirements:
Things that need to vary per site:
This will only be started when a permission-based dashboard has been merged into master.
what is the status for this multi-tenancy ?
Hi all, I am also interested in utilizing this functionality. Has there been any advances in this area?
We achieved multi-tenancy at edX (https://github.com/edx/ecommerce) in the following manner:
site foreign key to Basket modelSiteConfiguration model with site-specific data, and linking Site objects to Partner objects.Product has a single StockRecord whose related Partner allows us to determine which Site the product is affiliated withIn hindsight, the overloading of the Partner model is not ideal. Were I to change things, I would add a site foreign key to the Product model.
Note that we share users across the sites. This might not be desired in a truly white-label multi-tenancy scenario.
Most helpful comment
We achieved multi-tenancy at edX (https://github.com/edx/ecommerce) in the following manner:
siteforeign key toBasketmodelSiteConfigurationmodel with site-specific data, and linkingSiteobjects toPartnerobjects.Producthas a singleStockRecordwhose relatedPartnerallows us to determine whichSitethe product is affiliated withIn hindsight, the overloading of the
Partnermodel is not ideal. Were I to change things, I would add asiteforeign key to theProductmodel.Note that we share users across the sites. This might not be desired in a truly white-label multi-tenancy scenario.