txerpa / django-tenants-rls

Django app that allows multitenancy using postgres Row Level Security features
MIT License
11 stars 4 forks source link

Unique Constraints #2

Open Jragon opened 2 years ago

Jragon commented 2 years ago

Hi,

I'm migrating some old code over, and have a lot of unique constraints. I guess I need to turn these all into unique_together constraints in the meta class since there's no transformation done anywhere to include the tenant id ?

xgilest commented 2 years ago

Hi, you're right at the moment is the way to proceed.

Jragon commented 2 years ago

Great, thanks :) have added a system check to catch these